lua-users home
lua-l archive

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


Quoting George Bonaros <divider@binaryg.com>:

> i am calling a C funtion from LUA and i pushbask a string. but it seams
> that the string whan't return to LUA.
> 
> like this.
> 
> in LUA
>     CurDir = CFuncGetDir()
> 
> and in C
> 
> CFuncGetDir() 
>     pushstring("Anything")
> 
> any idea of what is wrong ????
> 
> 

Are you sure that you return 1 (or more, depending of the number of 
returned value from your function) at the end of the C function ?