public static bool lua_isnil(LuaCore.lua_State luaState, int index) { return(lua_type(luaState, index) == LuaTypes.Nil); }
public static void luaL_getmetatable(LuaCore.lua_State luaState, string meta) { lua_getfield(luaState, (int)LuaIndexes.Registry, meta); }
public static bool luaL_getmetafield(LuaCore.lua_State luaState, int stackPos, string field) { return(LuaCore.luaL_getmetafield(luaState, stackPos, field) != 0); }
public static void lua_pushboolean(LuaCore.lua_State luaState, bool value) { LuaCore.lua_pushboolean(luaState, value ? 1 : 0); }
public static int luaL_newmetatable(LuaCore.lua_State luaState, string meta) { return(LuaCore.luaL_newmetatable(luaState, meta)); }
public static string lua_tostring(LuaCore.lua_State luaState, int index) { return(LuaCore.lua_tostring(luaState, index).ToString()); }
public static void lua_pushstdcallcfunction(LuaCore.lua_State luaState, LuaCore.lua_CFunction function) { LuaCore.lua_pushcfunction(luaState, function); }
public static IntPtr lua_newuserdata(LuaCore.lua_State luaState, int size) { return(LuaCore.lua_newuserdata(luaState, (uint)size)); }
public static IntPtr lua_touserdata(LuaCore.lua_State luaState, int index) { return(LuaCore.lua_touserdata(luaState, index)); }
public static int lua_ref(LuaCore.lua_State luaState, int lockRef) { return(lockRef != 0 ? luaL_ref(luaState, (int)LuaIndexes.Registry) : 0); }
public static void lua_rawseti(LuaCore.lua_State luaState, int tableIndex, int index) { LuaCore.lua_rawseti(luaState, tableIndex, index); }
public static int luaL_ref(LuaCore.lua_State luaState, int registryIndex) { return(LuaCore.luaL_ref(luaState, registryIndex)); }
public static bool lua_isboolean(LuaCore.lua_State luaState, int index) { return(lua_type(luaState, index) == LuaTypes.Boolean); }
public static bool lua_isnumber(LuaCore.lua_State luaState, int index) { return(lua_type(luaState, index) == LuaTypes.Number); }
public static double lua_tonumber(LuaCore.lua_State luaState, int index) { return(LuaCore.lua_tonumber(luaState, index)); }
public static void lua_getref(LuaCore.lua_State luaState, int reference) { lua_rawgeti(luaState, (int)LuaIndexes.Registry, reference); }
public static bool lua_toboolean(LuaCore.lua_State luaState, int index) { return(LuaCore.lua_toboolean(luaState, index) != 0); }
public static void lua_unref(LuaCore.lua_State luaState, int reference) { LuaCore.luaL_unref(luaState, (int)LuaIndexes.Registry, reference); }
public static void lua_atpanic(LuaCore.lua_State luaState, LuaCore.lua_CFunction panicf) { LuaCore.lua_atpanic(luaState, (LuaCore.lua_CFunction)panicf); }
public static bool lua_isstring(LuaCore.lua_State luaState, int index) { return(LuaCore.lua_isstring(luaState, index) != 0); }
public static void lua_pushnumber(LuaCore.lua_State luaState, double number) { LuaCore.lua_pushnumber(luaState, number); }
public static bool lua_iscfunction(LuaCore.lua_State luaState, int index) { return(LuaCore.lua_iscfunction(luaState, index) != 0); }
public static void lua_pushstring(LuaCore.lua_State luaState, string str) { LuaCore.lua_pushstring(luaState, str); }
public static void lua_pushnil(LuaCore.lua_State luaState) { LuaCore.lua_pushnil(luaState); }
// steffenj: BEGIN Lua 5.1.1 API change (luaL_getmetatable is now a macro using lua_getfield) public static void lua_getfield(LuaCore.lua_State luaState, int stackPos, string meta) { LuaCore.lua_getfield(luaState, stackPos, meta); }
public static void lua_call(LuaCore.lua_State luaState, int nArgs, int nResults) { LuaCore.lua_call(luaState, nArgs, nResults); }
public static IntPtr luaL_checkudata(LuaCore.lua_State luaState, int stackPos, string meta) { return(LuaCore.luaL_checkudata(luaState, stackPos, meta)); }
public static int lua_pcall(LuaCore.lua_State luaState, int nArgs, int nResults, int errfunc) { return(LuaCore.lua_pcall(luaState, nArgs, nResults, errfunc)); }
public static int luaL_loadbuffer(LuaCore.lua_State luaState, string buff, string name) { return(LuaCore.luaL_loadbuffer(luaState, buff, (uint)buff.Length, name)); }
public static LuaTypes lua_type(LuaCore.lua_State luaState, int index) { return((LuaTypes)LuaCore.lua_type(luaState, index)); }