mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
With permission from the main authors [1], most of the code has been relicensed under the MIT license. SPDX license identifiers are used so that the license headers in source code files aren't too large. Add CONTRIBUTORS.rst file. [1] https://github.com/rednex/rgbds/issues/128 Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com>
46 lines
1008 B
C
46 lines
1008 B
C
/*
|
|
* This file is part of RGBDS.
|
|
*
|
|
* Copyright (c) 1997-2018, Carsten Sorensen and RGBDS contributors.
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
/*
|
|
* Contains some assembler-wide defines and externs
|
|
*/
|
|
|
|
#ifndef RGBDS_ASM_ASM_H
|
|
#define RGBDS_ASM_ASM_H
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
#include "asm/localasm.h"
|
|
#include "asm/symbol.h"
|
|
|
|
#define MAXUNIONS 128
|
|
#define MAXMACROARGS 256
|
|
#define MAXINCPATHS 128
|
|
|
|
extern int32_t nLineNo;
|
|
extern uint32_t nTotalLines;
|
|
extern uint32_t nPC;
|
|
extern uint32_t nPass;
|
|
extern uint32_t nIFDepth;
|
|
extern bool skipElif;
|
|
extern uint32_t nUnionDepth;
|
|
extern uint32_t unionStart[MAXUNIONS];
|
|
extern uint32_t unionSize[MAXUNIONS];
|
|
extern char tzCurrentFileName[_MAX_PATH + 1];
|
|
extern struct Section *pCurrentSection;
|
|
extern struct sSymbol *tHashedSymbols[HASHSIZE];
|
|
extern struct sSymbol *pPCSymbol;
|
|
extern bool oDontExpandStrings;
|
|
|
|
size_t symvaluetostring(char *dest, size_t maxLength, char *sym);
|
|
|
|
#endif /* RGBDS_ASM_ASM_H */
|