MCPcopy Create free account
hub / github.com/N64Recomp/N64Recomp / emit_function_start

Method emit_function_start

src/cgenerator.cpp:395–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

393}
394
395void 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
405void N64Recomp::CGenerator::emit_function_end() const {
406 fmt::print(output_file, ";}}\n");

Callers 1

recompile_function_implFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected