mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
@@ -1962,13 +1962,11 @@ restart:
|
||||
|
||||
static char *startCapture(void)
|
||||
{
|
||||
assert(!lexerState->expansions);
|
||||
|
||||
lexerState->capturing = true;
|
||||
lexerState->captureSize = 0;
|
||||
lexerState->disableMacroArgs = true;
|
||||
|
||||
if (lexerState->isMmapped) {
|
||||
if (lexerState->isMmapped && !lexerState->expansions) {
|
||||
return &lexerState->ptr[lexerState->offset];
|
||||
} else {
|
||||
lexerState->captureCapacity = 128; /* The initial size will be twice that */
|
||||
|
||||
3
test/asm/equs-macrodef.asm
Normal file
3
test/asm/equs-macrodef.asm
Normal file
@@ -0,0 +1,3 @@
|
||||
DEFINE equs "mac: MACRO\nPRINTT \"Hello :D\\n\"\nENDM"
|
||||
DEFINE
|
||||
mac
|
||||
0
test/asm/equs-macrodef.err
Normal file
0
test/asm/equs-macrodef.err
Normal file
1
test/asm/equs-macrodef.out
Normal file
1
test/asm/equs-macrodef.out
Normal file
@@ -0,0 +1 @@
|
||||
Hello :D
|
||||
Reference in New Issue
Block a user