diff --git a/Assets/XLua/Src/LuaDLL.cs b/Assets/XLua/Src/LuaDLL.cs index 22baedde7..581da8074 100644 --- a/Assets/XLua/Src/LuaDLL.cs +++ b/Assets/XLua/Src/LuaDLL.cs @@ -132,13 +132,13 @@ public static void lua_pop(IntPtr L, int amount) public static extern void lua_remove(IntPtr L, int index); [DllImport(LUADLL,CallingConvention=CallingConvention.Cdecl)] - public static extern void lua_rawget(IntPtr L, int index); + public static extern int lua_rawget(IntPtr L, int index); [DllImport(LUADLL,CallingConvention=CallingConvention.Cdecl)] public static extern void lua_rawset(IntPtr L, int index);//[-2, +0, m] [DllImport(LUADLL,CallingConvention=CallingConvention.Cdecl)] - public static extern void lua_setmetatable(IntPtr L, int objIndex); + public static extern int lua_setmetatable(IntPtr L, int objIndex); [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] public static extern int lua_rawequal(IntPtr L, int index1, int index2); @@ -274,7 +274,7 @@ public static string lua_tostring(IntPtr L, int index) } [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] - public static extern void lua_atpanic(IntPtr L, lua_CSFunction panicf); + public static extern IntPtr lua_atpanic(IntPtr L, lua_CSFunction panicf); [DllImport(LUADLL,CallingConvention=CallingConvention.Cdecl)] public static extern void lua_pushnumber(IntPtr L, double number);