// 我获得的lualib.dll文件里面 是没有luaopen_xx一类的函数的.
unit LuaLib;
interface
uses lua;
const
LUA_COLIBNAME = 'coroutine';
LUA_TABLIBNAME = 'table';
LUA_IOLIBNAME = 'io';
LUA_OSLIBNAME = 'os';
LUA_STRLIBNAME = 'string';
LUA_MATHLIBNAME = 'math';
LUA_DBLIBNAME = 'debug';
function luaopen_base(L: lua_State): int; stdcall; external Luadll;
function luaopen_table(L: lua_State): int; stdcall; external Luadll;
function luaopen_io(L: lua_State): int; stdcall; external Luadll;
function luaopen_string(L: lua_State): int; stdcall; external Luadll;
function luaopen_math(L: lua_State): int; stdcall; external Luadll;
function luaopen_debug(L: lua_State): int; stdcall; external Luadll;
function luaopen_loadlib(L: lua_State): int; stdcall; external Luadll;
{ compatibility code }
implementation
end.
博客围绕lualib.dll文件展开,该文件中没有luaopen_xx一类函数。定义了多个常量,如LUA_COLIBNAME等,还声明了一系列luaopen_xx函数,包括luaopen_base、luaopen_table等,这些函数均为外部调用。
733

被折叠的 条评论
为什么被折叠?



