Allow changing recursion depth limit at runtime

This commit is contained in:
ISSOtm
2022-02-05 12:15:32 +01:00
committed by Eldred Habert
parent 6842c831fd
commit 7dd8ba37f1
9 changed files with 80 additions and 12 deletions

13
test/asm/opt-r.asm Normal file
View File

@@ -0,0 +1,13 @@
OPT r34 ; :3
OPT r 360
; Invalid
OPT r ; Missing arg
OPT r 2a ; Bad decimal
; Check that it has an effect
OPT r 1
MACRO m
m
ENDM
m

6
test/asm/opt-r.err Normal file
View File

@@ -0,0 +1,6 @@
error: opt-r.asm(5):
Missing argument to option 'r'
error: opt-r.asm(6):
Invalid argument to option 'r' ("2a")
FATAL: opt-r.asm(13):
Recursion limit (1) exceeded

0
test/asm/opt-r.out Normal file
View File