lua-users home
lua-l archive

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


> In some personnal project I build lua core and lualib seperately, and
> there is a single limitation in loadlib.c that prevent me from doing
> this. On some lines the function luaO_pushfstring is called, which is
> not exposed by core API. The following patch fixes that with replacing
> these calls with calls to lua_pushfstring. So far I haven't had any
> problem with it, so if you think it won't hurt it could be useful for
> some people. Here is the patch :

This is actually a bug! loadlib is a library; as such, it must use only
the official API. (It should not even include lobject.h.) Thanks for
the feedback (still in time for 5.1.2).

-- Roberto