Beispiel #1
0
 public static bool lua_isnil(LuaCore.lua_State luaState, int index)
 {
     return(lua_type(luaState, index) == LuaTypes.Nil);
 }
Beispiel #2
0
 public static void luaL_getmetatable(LuaCore.lua_State luaState, string meta)
 {
     lua_getfield(luaState, (int)LuaIndexes.Registry, meta);
 }
Beispiel #3
0
 public static bool luaL_getmetafield(LuaCore.lua_State luaState, int stackPos, string field)
 {
     return(LuaCore.luaL_getmetafield(luaState, stackPos, field) != 0);
 }
Beispiel #4
0
 public static void lua_pushboolean(LuaCore.lua_State luaState, bool value)
 {
     LuaCore.lua_pushboolean(luaState, value ? 1 : 0);
 }
Beispiel #5
0
 public static int luaL_newmetatable(LuaCore.lua_State luaState, string meta)
 {
     return(LuaCore.luaL_newmetatable(luaState, meta));
 }
Beispiel #6
0
 public static string lua_tostring(LuaCore.lua_State luaState, int index)
 {
     return(LuaCore.lua_tostring(luaState, index).ToString());
 }
Beispiel #7
0
 public static void lua_pushstdcallcfunction(LuaCore.lua_State luaState, LuaCore.lua_CFunction function)
 {
     LuaCore.lua_pushcfunction(luaState, function);
 }
Beispiel #8
0
 public static IntPtr lua_newuserdata(LuaCore.lua_State luaState, int size)
 {
     return(LuaCore.lua_newuserdata(luaState, (uint)size));
 }
Beispiel #9
0
 public static IntPtr lua_touserdata(LuaCore.lua_State luaState, int index)
 {
     return(LuaCore.lua_touserdata(luaState, index));
 }
Beispiel #10
0
 public static int lua_ref(LuaCore.lua_State luaState, int lockRef)
 {
     return(lockRef != 0 ? luaL_ref(luaState, (int)LuaIndexes.Registry) : 0);
 }
Beispiel #11
0
 public static void lua_rawseti(LuaCore.lua_State luaState, int tableIndex, int index)
 {
     LuaCore.lua_rawseti(luaState, tableIndex, index);
 }
Beispiel #12
0
 public static int luaL_ref(LuaCore.lua_State luaState, int registryIndex)
 {
     return(LuaCore.luaL_ref(luaState, registryIndex));
 }
Beispiel #13
0
 public static bool lua_isboolean(LuaCore.lua_State luaState, int index)
 {
     return(lua_type(luaState, index) == LuaTypes.Boolean);
 }
Beispiel #14
0
 public static bool lua_isnumber(LuaCore.lua_State luaState, int index)
 {
     return(lua_type(luaState, index) == LuaTypes.Number);
 }
Beispiel #15
0
 public static double lua_tonumber(LuaCore.lua_State luaState, int index)
 {
     return(LuaCore.lua_tonumber(luaState, index));
 }
Beispiel #16
0
 public static void lua_getref(LuaCore.lua_State luaState, int reference)
 {
     lua_rawgeti(luaState, (int)LuaIndexes.Registry, reference);
 }
Beispiel #17
0
 public static bool lua_toboolean(LuaCore.lua_State luaState, int index)
 {
     return(LuaCore.lua_toboolean(luaState, index) != 0);
 }
Beispiel #18
0
 public static void lua_unref(LuaCore.lua_State luaState, int reference)
 {
     LuaCore.luaL_unref(luaState, (int)LuaIndexes.Registry, reference);
 }
Beispiel #19
0
 public static void lua_atpanic(LuaCore.lua_State luaState, LuaCore.lua_CFunction panicf)
 {
     LuaCore.lua_atpanic(luaState, (LuaCore.lua_CFunction)panicf);
 }
Beispiel #20
0
 public static bool lua_isstring(LuaCore.lua_State luaState, int index)
 {
     return(LuaCore.lua_isstring(luaState, index) != 0);
 }
Beispiel #21
0
 public static void lua_pushnumber(LuaCore.lua_State luaState, double number)
 {
     LuaCore.lua_pushnumber(luaState, number);
 }
Beispiel #22
0
 public static bool lua_iscfunction(LuaCore.lua_State luaState, int index)
 {
     return(LuaCore.lua_iscfunction(luaState, index) != 0);
 }
Beispiel #23
0
 public static void lua_pushstring(LuaCore.lua_State luaState, string str)
 {
     LuaCore.lua_pushstring(luaState, str);
 }
Beispiel #24
0
 public static void lua_pushnil(LuaCore.lua_State luaState)
 {
     LuaCore.lua_pushnil(luaState);
 }
Beispiel #25
0
 // 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);
 }
Beispiel #26
0
 public static void lua_call(LuaCore.lua_State luaState, int nArgs, int nResults)
 {
     LuaCore.lua_call(luaState, nArgs, nResults);
 }
Beispiel #27
0
 public static IntPtr luaL_checkudata(LuaCore.lua_State luaState, int stackPos, string meta)
 {
     return(LuaCore.luaL_checkudata(luaState, stackPos, meta));
 }
Beispiel #28
0
 public static int lua_pcall(LuaCore.lua_State luaState, int nArgs, int nResults, int errfunc)
 {
     return(LuaCore.lua_pcall(luaState, nArgs, nResults, errfunc));
 }
Beispiel #29
0
 public static int luaL_loadbuffer(LuaCore.lua_State luaState, string buff, string name)
 {
     return(LuaCore.luaL_loadbuffer(luaState, buff, (uint)buff.Length, name));
 }
Beispiel #30
0
 public static LuaTypes lua_type(LuaCore.lua_State luaState, int index)
 {
     return((LuaTypes)LuaCore.lua_type(luaState, index));
 }