1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

cgen: temporary headers fix

This commit is contained in:
Alexander Medvednikov 2020-04-06 14:22:56 +02:00
parent 1275241133
commit f59c9133da

View File

@ -435,7 +435,7 @@ fn (g mut Gen) stmt(node ast.Stmt) {
// #include etc
typ := it.val.all_before(' ')
if typ in ['include', 'define'] {
g.includes.writeln('#$it.val')
g.definitions.writeln('#$it.val')
}
}
ast.Import {}