1/*
2** Standard library header.
3** Copyright (C) 2005-2017 Mike Pall. See Copyright Notice in luajit.h
4*/
5
6#ifndef _LUALIB_H
7#define _LUALIB_H
8
9#include "lua.h"
10
11#define LUA_FILEHANDLE "FILE*"
12
13#define LUA_COLIBNAME "coroutine"
14#define LUA_MATHLIBNAME "math"
15#define LUA_STRLIBNAME "string"
16#define LUA_TABLIBNAME "table"
17#define LUA_IOLIBNAME "io"
18#define LUA_OSLIBNAME "os"
19#define LUA_LOADLIBNAME "package"
20#define LUA_DBLIBNAME "debug"
21#define LUA_BITLIBNAME "bit"
22#define LUA_JITLIBNAME "jit"
23#define LUA_FFILIBNAME "ffi"
24
25LUALIB_API int luaopen_base(lua_State *L);
26LUALIB_API int luaopen_math(lua_State *L);
27LUALIB_API int luaopen_string(lua_State *L);
28LUALIB_API int luaopen_table(lua_State *L);
29LUALIB_API int luaopen_io(lua_State *L);
30LUALIB_API int luaopen_os(lua_State *L);
31LUALIB_API int luaopen_package(lua_State *L);
32LUALIB_API int luaopen_debug(lua_State *L);
33LUALIB_API int luaopen_bit(lua_State *L);
34LUALIB_API int luaopen_jit(lua_State *L);
35LUALIB_API int luaopen_ffi(lua_State *L);
36
37LUALIB_API void luaL_openlibs(lua_State *L);
38
39#ifndef lua_assert
40#define lua_assert(x) ((void)0)
41#endif
42
43#endif
44