示例#1
0
 public static bool lua_checkstack(IntPtr luaState, int extra)
 {
     return(LuaWrapperNativeMethods.lua_checkstack(luaState, extra) > 0);
 }
示例#2
0
 public static void lua_pushlstring(IntPtr luaState, byte[] str, int size)
 {
     LuaWrapperNativeMethods.luaS_pushlstring(luaState, str, size);
 }
示例#3
0
 public static bool luaL_getmetafield(IntPtr luaState, int stackPos, string field)
 {
     return(LuaWrapperNativeMethods.luaL_getmetafield(luaState, stackPos, field) > 0);
 }
示例#4
0
 public static void lua_pushboolean(IntPtr luaState, bool value)
 {
     LuaWrapperNativeMethods.lua_pushboolean(luaState, value ? 1 : 0);
 }
示例#5
0
 public static bool lua_toboolean(IntPtr luaState, int index)
 {
     return(LuaWrapperNativeMethods.lua_toboolean(luaState, index) > 0);
 }
示例#6
0
 public static bool lua_isstring(IntPtr luaState, int index)
 {
     return(LuaWrapperNativeMethods.lua_isstring(luaState, index) > 0);
 }
示例#7
0
 public static int luaL_loadbuffer(IntPtr luaState, byte[] buff, int size, string name)
 {
     return(LuaWrapperNativeMethods.luaLS_loadbuffer(luaState, buff, size, name));
 }
示例#8
0
 public static int lua_rawlen(IntPtr luaState, int stackPos)
 {
     return(LuaWrapperNativeMethods.luaS_objlen(luaState, stackPos));
 }