lua-users home
lua-l archive

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


> luaL_loadbuffer(dst, b.buffer, b.p - b.buffer, string);

You cannot use the buffer contents like that. You should save its
contents as a string (with luaL_pushresult) and then get the string
from the stack.

-- Roberto