2 #ifndef UGDK_SCRIPT_LUA_AUXLIB_H_
3 #define UGDK_SCRIPT_LUA_AUXLIB_H_
24 return luaL_newstate();
31 std::bind(luaL_loadfile, L_, filename)
37 std::bind(luaL_loadstring, L_, str)
41 int checkintteger(
int index) {
return static_cast<int>(luaL_checkinteger(L_, index)); }
42 const char*
checkstring(
int index) {
return luaL_checkstring(L_, index); }
44 DataID ref(
int index) {
return luaL_ref(L_, index); }
46 void unref(
int index,
int n) { luaL_unref(L_, index, n); }
static lua_State * newstate()
Definition: auxlib.h:23
int checkintteger(int index)
Definition: auxlib.h:41
Definition: animation.h:11
void openlibs()
Definition: auxlib.h:27
const Constant loadstring(const char *str)
Definition: auxlib.h:35
Represents a constant value from the Lua library.
Definition: header.h:25
void unref(int index, int n)
Definition: auxlib.h:46
DataID ref(int index)
Definition: auxlib.h:44
struct lua_State lua_State
Definition: defs.h:8
const char * checkstring(int index)
Definition: auxlib.h:42
const Constant loadfile(const char *filename)
Definition: auxlib.h:29
int DataID
Definition: defs.h:20
AuxLib(lua_State *L)
Definition: auxlib.h:21