Files
rgbds/include/asm/macro.hpp
Rangi42 e9e8915725 Refactor to keep lexerState and lexerStateEOL static
Also run `clang-format` on everything
2024-03-23 19:14:46 -04:00

24 lines
521 B
C++

/* SPDX-License-Identifier: MIT */
#ifndef RGBDS_MACRO_H
#define RGBDS_MACRO_H
#include <memory>
#include <stdint.h>
#include <string>
#include <vector>
struct MacroArgs {
unsigned int shift;
std::vector<std::shared_ptr<std::string>> args;
uint32_t nbArgs() const { return args.size() - shift; }
std::shared_ptr<std::string> getArg(uint32_t i) const;
std::shared_ptr<std::string> getAllArgs() const;
void appendArg(std::shared_ptr<std::string> arg);
void shiftArgs(int32_t count);
};
#endif // RGBDS_MACRO_H