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