Re: How is string passed from Lua to C
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: How is string passed from Lua to C
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 7 Dec 2011 13:15:43 -0200
> Just a reminder - do not attempt to modify the string you get from
> Lua. If you need to change it, you should copy it into your own
> buffer.
Right but lua_tostring returns const char* so any attempt to modify the
string should be caught by the compiler.