Add option to output multiple functions per file, defaults to 50 (#88)

This commit is contained in:
Wiseguy 2024-08-15 00:17:09 -04:00 committed by GitHub
parent 424a509b22
commit f8d439aeee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 51 additions and 10 deletions

View file

@ -1246,7 +1246,7 @@ bool RecompPort::recompile_function(const RecompPort::Context& context, const Re
}
fmt::print(output_file,
"void {}(uint8_t* rdram, recomp_context* ctx) {{\n"
"RECOMP_FUNC void {}(uint8_t* rdram, recomp_context* ctx) {{\n"
// these variables shouldn't need to be preserved across function boundaries, so make them local for more efficient output
" uint64_t hi = 0, lo = 0, result = 0;\n"
" unsigned int rounding_mode = DEFAULT_ROUNDING_MODE;\n"