mirror of
https://gitcode.com/JianFeeeee/LuaCangjia_api.git
synced 2026-09-20 00:48:47 +00:00
- Lua 4.0 是首个引入 lua_State* 的版本, 但 API 与 5.x 代际差异大 - 桥接层适配要点与工作量评估见 doc/ADAPTATION-lua40.md - 本分支暂不承诺可编译, 后续按需移植
35 lines
676 B
C
35 lines
676 B
C
/*
|
|
** $Id: lualib.h,v 1.14 2000/10/27 16:15:53 roberto Exp $
|
|
** Lua standard libraries
|
|
** See Copyright Notice in lua.h
|
|
*/
|
|
|
|
|
|
#ifndef lualib_h
|
|
#define lualib_h
|
|
|
|
#include "lua.h"
|
|
|
|
|
|
#ifndef LUALIB_API
|
|
#define LUALIB_API extern
|
|
#endif
|
|
|
|
|
|
#define LUA_ALERT "_ALERT"
|
|
|
|
LUALIB_API void lua_baselibopen (lua_State *L);
|
|
LUALIB_API void lua_iolibopen (lua_State *L);
|
|
LUALIB_API void lua_strlibopen (lua_State *L);
|
|
LUALIB_API void lua_mathlibopen (lua_State *L);
|
|
LUALIB_API void lua_dblibopen (lua_State *L);
|
|
|
|
|
|
|
|
/* Auxiliary functions (private) */
|
|
|
|
const char *luaI_classend (lua_State *L, const char *p);
|
|
int luaI_singlematch (int c, const char *p, const char *ep);
|
|
|
|
#endif
|