lua-users home
lua-l archive

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



On 2-Jul-07, at 2:40 PM, SosCpdTerra wrote:

Did someone know a better way to typecast a const char * (that is about
lua_tostring(L, n)) into a char * then vector or c_str()? I'm fighting with
that...

Strings returned by lua_tostring *must not be modified*.

So don't cast them to char* or evil things will happen.