mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
compiler: first step to require explicit definition of imported C fns
This commit is contained in:
@ -1582,6 +1582,10 @@ fn (p mut Parser) name_expr() string {
|
||||
cfn := p.table.find_fn(name) or {
|
||||
// Not Found? Return 'void*'
|
||||
//return 'cvoid' //'void*'
|
||||
if false {
|
||||
p.warn('\ndefine imported C function with ' +
|
||||
'`fn C.$name([args]) [return_type]`\n')
|
||||
}
|
||||
return 'void*'
|
||||
}
|
||||
return cfn.typ
|
||||
|
Reference in New Issue
Block a user