The Battle for Wesnoth  1.15.1+dev
Macros | Functions
lualib.h File Reference
#include "lua.h"
Include dependency graph for lualib.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LUA_VERSUFFIX   "_" LUA_VERSION_MAJOR "_" LUA_VERSION_MINOR
 
#define LUA_COLIBNAME   "coroutine"
 
#define LUA_TABLIBNAME   "table"
 
#define LUA_IOLIBNAME   "io"
 
#define LUA_OSLIBNAME   "os"
 
#define LUA_STRLIBNAME   "string"
 
#define LUA_UTF8LIBNAME   "utf8"
 
#define LUA_BITLIBNAME   "bit32"
 
#define LUA_MATHLIBNAME   "math"
 
#define LUA_DBLIBNAME   "debug"
 
#define LUA_LOADLIBNAME   "package"
 
#define lua_assert(x)   ((void)0)
 

Functions

LUAMOD_API int() luaopen_base (lua_State *L)
 
LUAMOD_API int() luaopen_coroutine (lua_State *L)
 
LUAMOD_API int() luaopen_table (lua_State *L)
 
LUAMOD_API int() luaopen_io (lua_State *L)
 
LUAMOD_API int() luaopen_os (lua_State *L)
 
LUAMOD_API int() luaopen_string (lua_State *L)
 
LUAMOD_API int() luaopen_utf8 (lua_State *L)
 
LUAMOD_API int() luaopen_bit32 (lua_State *L)
 
LUAMOD_API int() luaopen_math (lua_State *L)
 
LUAMOD_API int() luaopen_debug (lua_State *L)
 
LUAMOD_API int() luaopen_package (lua_State *L)
 
LUALIB_API void() luaL_openlibs (lua_State *L)
 

Macro Definition Documentation

◆ lua_assert

#define lua_assert (   x)    ((void)0)

Definition at line 57 of file lualib.h.

◆ LUA_BITLIBNAME

#define LUA_BITLIBNAME   "bit32"

Definition at line 38 of file lualib.h.

◆ LUA_COLIBNAME

#define LUA_COLIBNAME   "coroutine"

Definition at line 20 of file lualib.h.

◆ LUA_DBLIBNAME

#define LUA_DBLIBNAME   "debug"

Definition at line 44 of file lualib.h.

◆ LUA_IOLIBNAME

#define LUA_IOLIBNAME   "io"

Definition at line 26 of file lualib.h.

◆ LUA_LOADLIBNAME

#define LUA_LOADLIBNAME   "package"

Definition at line 47 of file lualib.h.

◆ LUA_MATHLIBNAME

#define LUA_MATHLIBNAME   "math"

Definition at line 41 of file lualib.h.

◆ LUA_OSLIBNAME

#define LUA_OSLIBNAME   "os"

Definition at line 29 of file lualib.h.

◆ LUA_STRLIBNAME

#define LUA_STRLIBNAME   "string"

Definition at line 32 of file lualib.h.

◆ LUA_TABLIBNAME

#define LUA_TABLIBNAME   "table"

Definition at line 23 of file lualib.h.

◆ LUA_UTF8LIBNAME

#define LUA_UTF8LIBNAME   "utf8"

Definition at line 35 of file lualib.h.

◆ LUA_VERSUFFIX

#define LUA_VERSUFFIX   "_" LUA_VERSION_MAJOR "_" LUA_VERSION_MINOR

Definition at line 15 of file lualib.h.

Referenced by setpath().

Function Documentation

◆ luaL_openlibs()

LUALIB_API void() luaL_openlibs ( lua_State L)

◆ luaopen_base()

LUAMOD_API int() luaopen_base ( lua_State L)

◆ luaopen_bit32()

LUAMOD_API int() luaopen_bit32 ( lua_State L)

Definition at line 229 of file lbitlib.cpp.

References luaL_error().

◆ luaopen_coroutine()

LUAMOD_API int() luaopen_coroutine ( lua_State L)

Definition at line 164 of file lcorolib.cpp.

References luaL_newlib.

Referenced by lua_kernel_base::lua_kernel_base().

◆ luaopen_debug()

LUAMOD_API int() luaopen_debug ( lua_State L)

Definition at line 452 of file ldblib.cpp.

References luaL_newlib.

Referenced by lua_kernel_base::lua_kernel_base().

◆ luaopen_io()

LUAMOD_API int() luaopen_io ( lua_State L)

Definition at line 767 of file liolib.cpp.

References createmeta(), createstdfile(), IO_INPUT, IO_OUTPUT, and luaL_newlib.

◆ luaopen_math()

LUAMOD_API int() luaopen_math ( lua_State L)

◆ luaopen_os()

LUAMOD_API int() luaopen_os ( lua_State L)

Definition at line 405 of file loslib.cpp.

References luaL_newlib.

Referenced by lua_kernel_base::lua_kernel_base().

◆ luaopen_package()

LUAMOD_API int() luaopen_package ( lua_State L)

◆ luaopen_string()

LUAMOD_API int() luaopen_string ( lua_State L)

Definition at line 1579 of file lstrlib.cpp.

References createmetatable(), and luaL_newlib.

Referenced by lua_kernel_base::lua_kernel_base().

◆ luaopen_table()

LUAMOD_API int() luaopen_table ( lua_State L)

Definition at line 441 of file ltablib.cpp.

References lua_getfield(), lua_setglobal(), and luaL_newlib.

Referenced by lua_kernel_base::lua_kernel_base().

◆ luaopen_utf8()

LUAMOD_API int() luaopen_utf8 ( lua_State L)

Definition at line 250 of file lutf8lib.cpp.

References lua_pushlstring(), lua_setfield(), luaL_newlib, and UTF8PATT.

Referenced by lua_kernel_base::lua_kernel_base().