mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
fix duplicate #define generation
This commit is contained in:
parent
861f2d4bc0
commit
72249ce889
@ -230,7 +230,9 @@ fn (p mut Parser) chash() {
|
||||
}
|
||||
else if hash.contains('define') {
|
||||
// Move defines on top
|
||||
p.cgen.includes << '#$hash'
|
||||
if p.first_pass() {
|
||||
p.cgen.includes << '#$hash'
|
||||
}
|
||||
}
|
||||
// Don't parse a non-JS V file (`#-js` flag)
|
||||
else if hash == '-js' {
|
||||
|
Loading…
Reference in New Issue
Block a user