mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
make json work with new optionals
This commit is contained in:
parent
dec0d961f5
commit
8c36b9499d
2
Makefile
2
Makefile
@ -2,7 +2,7 @@ all: clean v
|
||||
$(info V has been successfully built)
|
||||
|
||||
v: v.c
|
||||
cc -march=native -std=gnu11 -w -o v v.c
|
||||
cc -std=gnu11 -w -o v v.c
|
||||
./v -o v compiler
|
||||
rm v.c
|
||||
|
||||
|
@ -105,7 +105,7 @@ string res = tos2("");
|
||||
}
|
||||
// cJSON_delete
|
||||
//p.cgen.fns << '$dec return opt_ok(res); \n}'
|
||||
p.cgen.fns << '$dec return opt_ok(res, sizeof(res)); \n}'
|
||||
p.cgen.fns << '$dec return opt_ok(res, sizeof(*res)); \n}'
|
||||
p.cgen.fns << '/*enc start*/ $enc return o;}'
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user