mirror of https://github.com/rusefi/lua.git
patch may be a little simpler
This commit is contained in:
parent
fc8d077612
commit
18a583306b
14
bugs
14
bugs
|
@ -1422,15 +1422,21 @@ since = [[?]],
|
||||||
example = [[ ]],
|
example = [[ ]],
|
||||||
patch = [[
|
patch = [[
|
||||||
lvm.c:
|
lvm.c:
|
||||||
@@ -61,7 +61,7 @@
|
@@ -61,11 +61,9 @@
|
||||||
lu_byte mask = L->hookmask;
|
lu_byte mask = L->hookmask;
|
||||||
const Instruction *oldpc = L->savedpc;
|
const Instruction *oldpc = L->savedpc;
|
||||||
L->savedpc = pc;
|
L->savedpc = pc;
|
||||||
- if (mask > LUA_MASKLINE) { /* instruction-hook set? */
|
- if (mask > LUA_MASKLINE) { /* instruction-hook set? */
|
||||||
|
- if (L->hookcount == 0) {
|
||||||
|
- resethookcount(L);
|
||||||
|
- luaD_callhook(L, LUA_HOOKCOUNT, -1);
|
||||||
|
- }
|
||||||
+ if ((mask & LUA_MASKCOUNT) && L->hookcount == 0) {
|
+ if ((mask & LUA_MASKCOUNT) && L->hookcount == 0) {
|
||||||
if (L->hookcount == 0) {
|
+ resethookcount(L);
|
||||||
resethookcount(L);
|
+ luaD_callhook(L, LUA_HOOKCOUNT, -1);
|
||||||
luaD_callhook(L, LUA_HOOKCOUNT, -1);
|
}
|
||||||
|
if (mask & LUA_MASKLINE) {
|
||||||
|
Proto *p = ci_func(L->ci)->l.p;
|
||||||
]],
|
]],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue