2 #ifndef UGDK_SCRIPT_LUA_AUXLIB_H_
3 #define UGDK_SCRIPT_LUA_AUXLIB_H_
6 #include FROM_TR1(functional)
24 return luaL_newstate();
31 std::tr1::bind(luaL_loadfile, L_, filename)
37 std::tr1::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); }