lua头文件翻译之lualib.h

博客围绕lualib.dll文件展开,该文件中没有luaopen_xx一类函数。定义了多个常量,如LUA_COLIBNAME等,还声明了一系列luaopen_xx函数,包括luaopen_base、luaopen_table等,这些函数均为外部调用。

// 我获得的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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值