mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
cgen: inline
This commit is contained in:
parent
3f480a358e
commit
77d41d03f5
@ -334,8 +334,12 @@ fn (g mut Gen) stmt(node ast.Stmt) {
|
||||
g.gen_assign_stmt(it)
|
||||
}
|
||||
ast.Attr {
|
||||
if it.name == 'inline' {
|
||||
g.writeln(it.name)
|
||||
} else {
|
||||
g.writeln('//[$it.name]')
|
||||
}
|
||||
}
|
||||
ast.Block {
|
||||
g.writeln('{')
|
||||
g.stmts(it.stmts)
|
||||
|
Loading…
Reference in New Issue
Block a user