From 1eb01361ef1bdda3ce2c3e73e9f0fff67ca60818 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?johnche=28=E8=BD=A6=E9=9B=84=E7=94=9F=29?= Date: Tue, 4 Dec 2018 12:53:00 +0800 Subject: [PATCH] fix https://github.com/Tencent/xLua/issues/501 --- Assets/XLua/Src/LuaDLL.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);