lua-users home
lua-l archive

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


Dear Lua List,

     I noticed that in luaconf.h, around line 257, this change was made:

/*
** More often than not the libs go together with the core;
** Functions from the auxiliary library must be exported,
** but opening functions do not.
*/
#define LUALIB_API    LUA_API
#define LUAMOD_API    LUAI_FUNC


    This means that when I compile my a DLL on Windows (with LUA_BUILD_AS_DLL) and attempt to call any of the luaopen_base, etc. functions from an executable that references said DLL, it cannot find them because all LUAI_FUNC-marked functions are marked internal and thus not reachable. This was not the case with Lua 5.4 work1.

     Is there a particular reason why the modules/open API is now considered a private implementation detail?

All my best,
ThePhD