mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
- Since we have style rules to include foo.hpp at the top of its corresponding foo.cpp, this takes any headers included by foo.hpp as being also guaranteed for foo.cpp. - Use C-style <foo.h> instead of <cfoo>, since the latter only guarantees putting symbols in the `std` namespace, which we are not using for C functions (e.g. `printf` not `std::printf`). - Remove now-unused `__PRETTY_FUNCTION__` reporting
29 lines
589 B
C++
29 lines
589 B
C++
/* SPDX-License-Identifier: MIT */
|
|
|
|
#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(Section const §ion);
|
|
|
|
/*
|
|
* Finds an assigned section overlapping another one.
|
|
* @param section The section that is being overlapped
|
|
* @return A section overlapping it
|
|
*/
|
|
Section const *out_OverlappingSection(Section const §ion);
|
|
|
|
/*
|
|
* Writes all output (bin, sym, map) files.
|
|
*/
|
|
void out_WriteFiles();
|
|
|
|
#endif // RGBDS_LINK_OUTPUT_H
|