sdk-world v2026.11.05
PS2 SDK - world tier (copyleft-allowed, non-essential packages)
Loading...
Searching...
No Matches
lualib.h
Go to the documentation of this file.
1/*
2** $Id: lualib.h $
3** Lua standard libraries
4** See Copyright Notice in lua.h
5*/
6
7
12#ifndef lualib_h
13#define lualib_h
14
15#include "lua.h"
16
17
18/* version suffix for environment variable names */
19#define LUA_VERSUFFIX "_" LUA_VERSION_MAJOR "_" LUA_VERSION_MINOR
20
21
22LUAMOD_API int (luaopen_base) (lua_State *L);
23
24#define LUA_COLIBNAME "coroutine"
25LUAMOD_API int (luaopen_coroutine) (lua_State *L);
26
27#define LUA_TABLIBNAME "table"
28LUAMOD_API int (luaopen_table) (lua_State *L);
29
30#define LUA_IOLIBNAME "io"
31LUAMOD_API int (luaopen_io) (lua_State *L);
32
33#define LUA_OSLIBNAME "os"
34LUAMOD_API int (luaopen_os) (lua_State *L);
35
36#define LUA_STRLIBNAME "string"
37LUAMOD_API int (luaopen_string) (lua_State *L);
38
39#define LUA_UTF8LIBNAME "utf8"
40LUAMOD_API int (luaopen_utf8) (lua_State *L);
41
42#define LUA_MATHLIBNAME "math"
43LUAMOD_API int (luaopen_math) (lua_State *L);
44
45#define LUA_DBLIBNAME "debug"
46LUAMOD_API int (luaopen_debug) (lua_State *L);
47
48#define LUA_LOADLIBNAME "package"
49LUAMOD_API int (luaopen_package) (lua_State *L);
50
51
52/* open all previous libraries */
53LUALIB_API void (luaL_openlibs) (lua_State *L);
54
55
56#endif