Repair subclass hook for debugging.
This commit is contained in:
@@ -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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user