mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
This has been relocated from macro.cpp to fstack.cpp, since both MACRO and REPT/FOR nodes have their own unique `\@` values.
31 lines
556 B
C++
31 lines
556 B
C++
/* SPDX-License-Identifier: MIT */
|
|
|
|
#ifndef RGBDS_MACRO_H
|
|
#define RGBDS_MACRO_H
|
|
|
|
#include <stdint.h>
|
|
#include <stdlib.h>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "helpers.hpp"
|
|
|
|
#include "asm/warning.hpp"
|
|
|
|
struct MacroArgs {
|
|
unsigned int shift;
|
|
std::vector<std::string> args;
|
|
|
|
void append(std::string s);
|
|
};
|
|
|
|
MacroArgs *macro_GetCurrentArgs();
|
|
void macro_UseNewArgs(MacroArgs *args);
|
|
char const *macro_GetArg(uint32_t i);
|
|
char const *macro_GetAllArgs();
|
|
|
|
void macro_ShiftCurrentArgs(int32_t count);
|
|
uint32_t macro_NbArgs();
|
|
|
|
#endif // RGBDS_MACRO_H
|