mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Use // line comments not /* block comments
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#include "link/patch.hpp"
|
||||
|
||||
@@ -63,14 +63,12 @@ static Symbol const *getSymbol(std::vector<Symbol> const &symbolList, uint32_t i
|
||||
return &symbol;
|
||||
}
|
||||
|
||||
/*
|
||||
* Compute a patch's value from its RPN string.
|
||||
* @param patch The patch to compute the value of
|
||||
* @param section The section the patch is contained in
|
||||
* @return The patch's value
|
||||
* @return isError Set if an error occurred during evaluation, and further
|
||||
* errors caused by the value should be suppressed.
|
||||
*/
|
||||
// Compute a patch's value from its RPN string.
|
||||
// @param patch The patch to compute the value of
|
||||
// @param section The section the patch is contained in
|
||||
// @return The patch's value
|
||||
// @return isError Set if an error occurred during evaluation, and further
|
||||
// errors caused by the value should be suppressed.
|
||||
static int32_t computeRPNExpr(Patch const &patch, std::vector<Symbol> const &fileSymbols) {
|
||||
uint8_t const *expression = patch.rpnExpression.data();
|
||||
int32_t size = static_cast<int32_t>(patch.rpnExpression.size());
|
||||
@@ -471,11 +469,9 @@ void patch_CheckAssertions() {
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Applies all of a section's patches
|
||||
* @param section The section component to patch
|
||||
* @param dataSection The section to patch
|
||||
*/
|
||||
// Applies all of a section's patches
|
||||
// @param section The section component to patch
|
||||
// @param dataSection The section to patch
|
||||
static void applyFilePatches(Section §ion, Section &dataSection) {
|
||||
verbosePrint("Patching section \"%s\"...\n", section.name.c_str());
|
||||
for (Patch &patch : section.patches) {
|
||||
@@ -537,10 +533,8 @@ static void applyFilePatches(Section §ion, Section &dataSection) {
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Applies all of a section's patches, iterating over "components" of unionized sections
|
||||
* @param section The section to patch
|
||||
*/
|
||||
// Applies all of a section's patches, iterating over "components" of unionized sections
|
||||
// @param section The section to patch
|
||||
static void applyPatches(Section §ion) {
|
||||
if (!sect_HasData(section.type))
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user