mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
This touched a lot more code than initially expected, for two reasons. First, this broke a big RGBASM assumption: that sections are always being written to at their end. This plus other problems required touching basically the entirety of `section.c`. Second, I tried different solutions to solve the above problem, and along the way I cleaned up many things around. (I believe that keeping this to "cleanup" commits yields subpar results, and since it's boring they get postponed anyways.) RGBLINK support still needs to be added, but this will come next.
29 lines
651 B
C
29 lines
651 B
C
/*
|
|
* This file is part of RGBDS.
|
|
*
|
|
* Copyright (c) 1997-2018, Carsten Sorensen and RGBDS contributors.
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#ifndef RGBDS_ASM_OUTPUT_H
|
|
#define RGBDS_ASM_OUTPUT_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "linkdefs.h"
|
|
|
|
struct Expression;
|
|
|
|
extern char *tzObjectname;
|
|
extern struct Section *pSectionList, *pCurrentSection;
|
|
|
|
void out_SetFileName(char *s);
|
|
void out_CreatePatch(uint32_t type, struct Expression const *expr,
|
|
uint32_t ofs);
|
|
bool out_CreateAssert(enum AssertionType type, struct Expression const *expr,
|
|
char const *message, uint32_t ofs);
|
|
void out_WriteObject(void);
|
|
|
|
#endif /* RGBDS_ASM_OUTPUT_H */
|