| 393 | } |
| 394 | |
| 395 | void N64Recomp::CGenerator::emit_function_start(const std::string& function_name, size_t func_index) const { |
| 396 | (void)func_index; |
| 397 | fmt::print(output_file, |
| 398 | "RECOMP_FUNC void {}(uint8_t* rdram, recomp_context* ctx) {{\n" |
| 399 | // these variables shouldn't need to be preserved across function boundaries, so make them local for more efficient output |
| 400 | " uint64_t hi = 0, lo = 0, result = 0;\n" |
| 401 | " int c1cs = 0;\n", // cop1 conditional signal |
| 402 | function_name); |
| 403 | } |
| 404 | |
| 405 | void N64Recomp::CGenerator::emit_function_end() const { |
| 406 | fmt::print(output_file, ";}}\n"); |
no outgoing calls
no test coverage detected