diff --git a/ion/src/simulator/shared/collect_registers.cpp b/ion/src/simulator/shared/collect_registers.cpp index 4fa4c86fd..0f73be4b7 100644 --- a/ion/src/simulator/shared/collect_registers.cpp +++ b/ion/src/simulator/shared/collect_registers.cpp @@ -5,10 +5,12 @@ extern "C" { // define in assembly code // Force the name as archs (linux/macos) don't mangle C names the same way extern uintptr_t collect_registers(uintptr_t * regs) asm ("_collect_registers"); + } namespace Ion { -// Wrapper to avoid +// Wrapper to avoid handling c++ name mangling when writing assembly code + uintptr_t collectRegisters(jmp_buf buf) { uintptr_t * regs = (uintptr_t *)buf; return collect_registers(regs);