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