Skip to content

Commit

Permalink
fix #501
Browse files Browse the repository at this point in the history
  • Loading branch information
chexiongsheng committed Dec 4, 2018
1 parent c0aa21c commit 1eb0136
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Assets/XLua/Src/LuaDLL.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 1eb0136

Please sign in to comment.