1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-01 13:50:36 +00:00

Fixes call to System breaking $DEBUG mode.

This commit is contained in:
Fellippe Heitor 2021-07-29 18:32:04 -03:00
parent 5fe0902c31
commit 2afe20c5b7

View file

@ -8911,8 +8911,10 @@ DO
IF vWatchOn = 1 THEN
vWatchAddLabel linenumber, 0
PRINT #12, "*__LONG_VWATCH_LINENUMBER= 0; SUB_VWATCH((ptrszint*)vwatch_global_vars,(ptrszint*)vwatch_local_vars); if (*__LONG_VWATCH_GOTO>0) goto VWATCH_SETNEXTLINE; if (*__LONG_VWATCH_GOTO<0) goto VWATCH_SKIPLINE;"
IF inclinenumber(inclevel) = 0 THEN
vWatchAddLabel linenumber, 0
END IF
PRINT #12, "*__LONG_VWATCH_LINENUMBER= 0; SUB_VWATCH((ptrszint*)vwatch_global_vars,(ptrszint*)vwatch_local_vars);"
END IF
PRINT #12, "if (sub_gl_called) error(271);"
PRINT #12, "close_program=1;"
@ -22803,6 +22805,7 @@ END FUNCTION
SUB xend
IF vWatchOn = 1 THEN
'check if closedmain = 0 in case a main module ends in an include.
IF (inclinenumber(inclevel) = 0 OR closedmain = 0) THEN vWatchAddLabel 0, -1
PRINT #12, "*__LONG_VWATCH_LINENUMBER= 0; SUB_VWATCH((ptrszint*)vwatch_global_vars,(ptrszint*)vwatch_local_vars);"
END IF