[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: PushString
- From: luagnome@...
- Date: Tue, 12 Jun 2001 16:30:59 +0200 (MEST)
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 ?