Skip to content

Commit f1af2c6

Browse files
committed
Added lua assert to luajit
1 parent 19aa01a commit f1af2c6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/LuaJIT.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public static class Lua
5757
public delegate int lua_Writer(IntPtr L, IntPtr p, ulong sz, IntPtr ud);
5858
public delegate IntPtr lua_Reader(IntPtr L, IntPtr ud, ref ulong sz);
5959
public delegate IntPtr lua_Alloc(IntPtr ud, IntPtr ptr, ulong osize, ulong nsize);
60-
public delegate void lua_Hook(IntPtr L, IntPtr ar);
60+
public delegate void lua_Hook(IntPtr L, lua_Debug ar);
6161

6262
////
6363

@@ -100,6 +100,11 @@ public static string LUA_QL(string x)
100100

101101
public static readonly int LUAL_BUFFERSIZE = 512 > 16384 ? 8182 : 512;
102102

103+
public static void lua_assert(bool c)
104+
{
105+
Debug.Assert(c);
106+
}
107+
103108
////
104109

105110
public static readonly string LUA_VERSION = "Lua 5.1";

0 commit comments

Comments
 (0)