fix duplicate #define generation
parent
861f2d4bc0
commit
72249ce889
|
@ -230,8 +230,10 @@ fn (p mut Parser) chash() {
|
||||||
}
|
}
|
||||||
else if hash.contains('define') {
|
else if hash.contains('define') {
|
||||||
// Move defines on top
|
// Move defines on top
|
||||||
|
if p.first_pass() {
|
||||||
p.cgen.includes << '#$hash'
|
p.cgen.includes << '#$hash'
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// Don't parse a non-JS V file (`#-js` flag)
|
// Don't parse a non-JS V file (`#-js` flag)
|
||||||
else if hash == '-js' {
|
else if hash == '-js' {
|
||||||
$if js {
|
$if js {
|
||||||
|
|
Loading…
Reference in New Issue