mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
36 lines
724 B
C++
36 lines
724 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();
|
|
|
|
uint32_t macro_GetUniqueID();
|
|
char const *macro_GetUniqueIDStr();
|
|
void macro_SetUniqueID(uint32_t id);
|
|
uint32_t macro_UseNewUniqueID();
|
|
uint32_t macro_UndefUniqueID();
|
|
void macro_ShiftCurrentArgs(int32_t count);
|
|
uint32_t macro_NbArgs();
|
|
|
|
#endif // RGBDS_MACRO_H
|