Repair subclass hook for debugging.

This commit is contained in:
James Roseborough
2009-04-02 13:50:11 +00:00
parent bb8ced423e
commit 498805bfe5

View File

@@ -112,6 +112,7 @@ public class LuaState extends Lua {
private int hookincr; private int hookincr;
private int hookline,hookcc; private int hookline,hookcc;
protected void debugHooks(int pc) {}
protected void debugAssert(boolean b) {} protected void debugAssert(boolean b) {}
// ------------------- constructors --------------------- // ------------------- constructors ---------------------
@@ -541,6 +542,7 @@ public class LuaState extends Lua {
// allow debug hooks a chance to operate // allow debug hooks a chance to operate
if ( hooksenabled ) { if ( hooksenabled ) {
debugHooks( ci.pc );
debugBytecodeHooks( ci.pc ); debugBytecodeHooks( ci.pc );
} }