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

cgen: v fmt fn.v

This commit is contained in:
joe-conigliaro 2020-12-20 22:21:46 +11:00
parent 3b2083801b
commit 628021a7cf
No known key found for this signature in database
GPG Key ID: C12F7136C08206F1

View File

@ -113,7 +113,8 @@ fn (mut g Gen) gen_fn_decl(it ast.FnDecl, skip bool) {
arg_start_pos := g.out.len
fargs, fargtypes := g.fn_args(it.params, it.is_variadic)
arg_str := g.out.after(arg_start_pos)
if it.no_body || ((g.pref.use_cache && g.pref.build_mode != .build_module) && it.is_builtin) || skip {
if it.no_body ||
((g.pref.use_cache && g.pref.build_mode != .build_module) && it.is_builtin) || skip {
// Just a function header. Builtin function bodies are defined in builtin.o
g.definitions.writeln(');') // // NO BODY')
g.writeln(');')