mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
compiler: another C function call fix
This commit is contained in:
parent
7cf7215557
commit
3e52984e88
@ -752,6 +752,10 @@ fn (p mut Parser) fn_call_args(f mut Fn) &Fn {
|
|||||||
p.check(.lpar)
|
p.check(.lpar)
|
||||||
if f.is_c {
|
if f.is_c {
|
||||||
for p.tok != .rpar {
|
for p.tok != .rpar {
|
||||||
|
//C.func(var1, var2.method())
|
||||||
|
//If the parameter calls a function or method that is not C,
|
||||||
|
//the value of p.calling_c is changed
|
||||||
|
p.calling_c = true
|
||||||
ph := p.cgen.add_placeholder()
|
ph := p.cgen.add_placeholder()
|
||||||
typ := p.bool_expression()
|
typ := p.bool_expression()
|
||||||
// Cast V byteptr to C char* (byte is unsigned in V, that led to C warnings)
|
// Cast V byteptr to C char* (byte is unsigned in V, that led to C warnings)
|
||||||
|
Loading…
Reference in New Issue
Block a user