Build everything as C++ (#1176)

This commit is contained in:
Rangi
2023-11-07 15:45:56 -05:00
committed by GitHub
parent 78d83be2b2
commit 1e70e703a7
84 changed files with 667 additions and 663 deletions

29
include/link/output.hpp Normal file
View File

@@ -0,0 +1,29 @@
/* SPDX-License-Identifier: MIT */
// Outputting the result of linking
#ifndef RGBDS_LINK_OUTPUT_H
#define RGBDS_LINK_OUTPUT_H
#include <stdint.h>
#include "link/section.hpp"
/*
* Registers a section for output.
* @param section The section to add
*/
void out_AddSection(struct Section const *section);
/*
* Finds an assigned section overlapping another one.
* @param section The section that is being overlapped
* @return A section overlapping it
*/
struct Section const *out_OverlappingSection(struct Section const *section);
/*
* Writes all output (bin, sym, map) files.
*/
void out_WriteFiles(void);
#endif // RGBDS_LINK_OUTPUT_H