mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 10:42:07 +00:00
Split macro arg management into its own file
It has no relation to symbols, and helps a tiny bit deflate `symbol.c`
This commit is contained in:
28
include/asm/macro.h
Normal file
28
include/asm/macro.h
Normal file
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* This file is part of RGBDS.
|
||||
*
|
||||
* Copyright (c) 2020, Carsten Sorensen and RGBDS contributors.
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#ifndef RGBDS_MACRO_H
|
||||
#define RGBDS_MACRO_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "helpers.h"
|
||||
|
||||
void sym_AddNewMacroArg(char const *s);
|
||||
void sym_SaveCurrentMacroArgs(char *save[]);
|
||||
void sym_RestoreCurrentMacroArgs(char *save[]);
|
||||
void sym_UseNewMacroArgs(void);
|
||||
char *sym_FindMacroArg(int32_t i);
|
||||
void sym_UseCurrentMacroArgs(void);
|
||||
void sym_SetMacroArgID(uint32_t nMacroCount);
|
||||
void sym_ShiftCurrentMacroArgs(void);
|
||||
uint32_t sym_NbMacroArgs(void);
|
||||
|
||||
void macro_Init(void);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user