use vm->callLevel to count recursive calls to VM_Call
Throw an error if vm->callLevel is set and VM_Free is called.
This commit is contained in:
parent
6c5211c0d3
commit
7a5243a3b2
4 changed files with 18 additions and 16 deletions
|
@ -156,7 +156,7 @@ struct vm_s {
|
|||
int numSymbols;
|
||||
struct vmSymbol_s *symbols;
|
||||
|
||||
int callLevel; // for debug indenting
|
||||
int callLevel; // counts recursive VM_Call
|
||||
int breakFunction; // increment breakCount on function entry to this
|
||||
int breakCount;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue