lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> package="test_1"
> dofile("tolua.lua")
> 
> Below is the "cleaned header file "test_1.pkg" (obviously very basic):
> 
> #ifndef TESTER
> #define TESTER    1
> 
> void beep(short i);
> 
> #endif

as LHF already said, tolua does not support #if's.

> During one of my attempts, I got the following:
> 
> package="test_1"
> dofile("tolua.lua")
> lua: unexpected type for concatenation
> Active Stack:
>     function whatIs at line 93 [in file cparser.lua]
>     function parseChunk at line 392 [in file cparser.lua]
>     main of tolua.lua at line 913
>     function dofile [in file (C)]
>     main of (dostring) >> dofile("tolua.lua")
> 
> 
> If I can be of any assistance please feel free to email.

but for sure the error message should report what is wrong.
I will fix this message. thanks for your feedback.

-- waldemar