[ion] Fix comment

This commit is contained in:
Émilie Feral
2020-05-15 14:35:32 +02:00
committed by LeaNumworks
parent 0f61b2ccf3
commit 4cd0d20585

View File

@@ -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);