#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
Go to the source code of this file.
Macros | |
#define | lbaselib_c |
#define | LUA_LIB |
#define | SPACECHARS " \f\n\r\t\v" |
#define | RESERVEDSLOT 5 |
Variables | |
static const luaL_Reg | base_funcs [] |
#define lbaselib_c |
Definition at line 13 of file lbaselib.cpp.
#define LUA_LIB |
Definition at line 14 of file lbaselib.cpp.
#define RESERVEDSLOT 5 |
Definition at line 282 of file lbaselib.cpp.
Referenced by generic_reader(), and luaB_load().
#define SPACECHARS " \f\n\r\t\v" |
Definition at line 45 of file lbaselib.cpp.
Referenced by luaB_tonumber().
Definition at line 368 of file lbaselib.cpp.
References lua_checkstack(), lua_gettop(), lua_pushboolean(), lua_pushstring(), lua_replace(), and lua_settop().
Referenced by luaB_pcall(), luaB_xpcall(), and pcallcont().
Definition at line 291 of file lbaselib.cpp.
References lua_call, lua_isnil, lua_isstring(), lua_pop, lua_pushvalue(), lua_replace(), lua_tolstring(), luaL_checkstack(), luaL_error(), and RESERVEDSLOT.
Referenced by luaB_load().
Definition at line 229 of file lbaselib.cpp.
References i, lua_isnil, lua_pushinteger(), lua_rawgeti(), LUA_TTABLE, luaL_checkint, and luaL_checktype().
Referenced by luaB_ipairs().
Definition at line 244 of file lbaselib.cpp.
References lua_insert(), LUA_OK, lua_pop, lua_pushnil(), lua_pushvalue(), and lua_setupvalue().
Referenced by luaB_load(), and luaB_loadfile().
Definition at line 345 of file lbaselib.cpp.
References lua_gettop(), lua_toboolean(), luaL_error(), and luaL_optstring.
Definition at line 159 of file lbaselib.cpp.
References lua_gc(), LUA_GCCOLLECT, LUA_GCCOUNT, LUA_GCCOUNTB, LUA_GCGEN, LUA_GCINC, LUA_GCISRUNNING, LUA_GCRESTART, LUA_GCSETMAJORINC, LUA_GCSETPAUSE, LUA_GCSETSTEPMUL, LUA_GCSTEP, LUA_GCSTOP, lua_pushboolean(), lua_pushinteger(), lua_pushnumber(), luaL_checkoption(), and luaL_optint.
Definition at line 335 of file lbaselib.cpp.
References dofilecont(), lua_callk(), lua_error(), LUA_MULTRET, LUA_OK, lua_settop(), luaL_loadfile, and luaL_optstring.
Definition at line 88 of file lbaselib.cpp.
References lua_concat(), lua_error(), lua_isstring(), lua_pushvalue(), lua_settop(), luaL_optint, and luaL_where().
Definition at line 100 of file lbaselib.cpp.
References lua_getmetatable(), lua_pushnil(), luaL_checkany(), and luaL_getmetafield().
Definition at line 239 of file lbaselib.cpp.
References ipairsaux(), and pairsmeta().
Definition at line 308 of file lbaselib.cpp.
References generic_reader(), load_aux(), lua_isnone, lua_load(), lua_settop(), LUA_TFUNCTION, lua_tolstring(), luaL_checktype(), luaL_loadbufferx(), luaL_optstring, and RESERVEDSLOT.
Definition at line 261 of file lbaselib.cpp.
References load_aux(), lua_isnone, luaL_loadfilex(), and luaL_optstring.
Definition at line 212 of file lbaselib.cpp.
References lua_next(), lua_pushnil(), lua_settop(), LUA_TTABLE, and luaL_checktype().
Referenced by luaB_pairs().
Definition at line 224 of file lbaselib.cpp.
References luaB_next(), and pairsmeta().
Definition at line 387 of file lbaselib.cpp.
References finishpcall(), lua_gettop(), lua_insert(), LUA_MULTRET, LUA_OK, lua_pcallk(), lua_pushnil(), luaL_checkany(), and pcallcont().
Definition at line 22 of file lbaselib.cpp.
References i, lua_call, lua_getglobal(), lua_gettop(), lua_pop, lua_pushvalue(), LUA_QL, lua_tolstring(), and luaL_error().
Definition at line 124 of file lbaselib.cpp.
References lua_pushboolean(), lua_rawequal(), and luaL_checkany().
Definition at line 141 of file lbaselib.cpp.
References lua_rawget(), lua_settop(), LUA_TTABLE, luaL_checkany(), and luaL_checktype().
Definition at line 132 of file lbaselib.cpp.
References lua_pushinteger(), lua_rawlen(), LUA_TSTRING, LUA_TTABLE, lua_type(), and luaL_argcheck.
Definition at line 149 of file lbaselib.cpp.
References lua_rawset(), lua_settop(), LUA_TTABLE, luaL_checkany(), and luaL_checktype().
Definition at line 352 of file lbaselib.cpp.
References i, lua_gettop(), lua_pushinteger(), lua_tostring, LUA_TSTRING, lua_type(), luaL_argcheck, and luaL_checkint.
Definition at line 111 of file lbaselib.cpp.
References lua_setmetatable(), lua_settop(), LUA_TNIL, LUA_TTABLE, lua_type(), luaL_argcheck, luaL_checktype(), luaL_error(), and luaL_getmetafield().
Definition at line 47 of file lbaselib.cpp.
References e, lua_isnoneornil, lua_pushnil(), lua_pushnumber(), lua_tonumberx(), luaL_argcheck, luaL_checkany(), luaL_checkint, luaL_checklstring(), and SPACECHARS.
Definition at line 409 of file lbaselib.cpp.
References luaL_checkany(), and luaL_tolstring().
Definition at line 188 of file lbaselib.cpp.
References lua_pushstring(), luaL_checkany(), and luaL_typename.
Definition at line 397 of file lbaselib.cpp.
References finishpcall(), lua_copy(), lua_gettop(), LUA_MULTRET, LUA_OK, lua_pcallk(), lua_pushvalue(), lua_replace(), luaL_argcheck, and pcallcont().
LUAMOD_API int luaopen_base | ( | lua_State * | L | ) |
Definition at line 446 of file lbaselib.cpp.
References lua_pushglobaltable, lua_pushliteral, lua_setfield(), LUA_VERSION, and luaL_setfuncs().
Referenced by lua_kernel_base::lua_kernel_base().
|
static |
Definition at line 195 of file lbaselib.cpp.
References lua_call, lua_pushcfunction, lua_pushinteger(), lua_pushnil(), lua_pushvalue(), LUA_TTABLE, luaL_checktype(), and luaL_getmetafield().
Referenced by luaB_ipairs(), and luaB_pairs().
Definition at line 381 of file lbaselib.cpp.
References finishpcall(), lua_getctx(), and LUA_YIELD.
Referenced by luaB_pcall(), and luaB_xpcall().
|
static |
Definition at line 416 of file lbaselib.cpp.