Exemple #1
0
 public DebugEngine(LuaState ls)
 {
     this.ls          = ls;
     this.debugHook   = new LuaDebugHook(this.DebugHook);
     this.logCallback = new LuaCFunc(this.LogCallback);
     RegisterLogFunction();
     ErrorHook.SetErrorHandler(ls.L, new ErrorHook.LuaErrorCaught(this.ErrorCaughtHook));
     this.fireStateChangedEvent = new Action(FireStateChangedEvent);
     SetHook();
 }
Exemple #2
0
 public static extern int lua_sethook(UIntPtr L, LuaDebugHook hookFn, LuaHookType mask, int count);