lua-users home
lua-l archive

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


Hi Luiz

I realize now you - lhf - wrote that answer!
Thank you for that.

However on SO I asked you also
    Calling only luaopen_base the stack has one element... should I pop it ?
but you didn't reply.

Do you agree the right code is
    luaL_requiref(L,"string", luaopen_string, 1);
    lua_pop(L, 1);
?

M


On Mon, 11 May 2020 at 18:59, Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:
This has also been asked at
https://stackoverflow.com/questions/61690727/lua-call-script-from-c-with-limited-modules-error-on-string-len
_______________________________________________
lua-l mailing list -- lua-l@lists.lua.org
To unsubscribe send an email to lua-l-leave@lists.lua.org
_______________________________________________
lua-l mailing list -- lua-l@lists.lua.org
To unsubscribe send an email to lua-l-leave@lists.lua.org