Last updated 8 months ago
Compiler found a definition combined with the export keyword:
export
export function foo<cdecl, 0xC0DE000>() // Error: Can't export a foreign function definition foo
remove export keyword
function foo<cdecl, 0xC0DE000>()
make a local SCM function and export it instead:
function foo<cdecl, 0xC0DE000>() export function foo_wrapper() foo() end