From 5fa9c3c34c0a064f532030c5c5e6fe55f8ec19e5 Mon Sep 17 00:00:00 2001 From: Ilia Demianenko Date: Sat, 15 Jul 2023 00:49:41 -0700 Subject: [PATCH] Fixes --- scripts/bindgen2.py | 4 ++-- sdk/orca_exports.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/bindgen2.py b/scripts/bindgen2.py index ea956a7..48baa0e 100644 --- a/scripts/bindgen2.py +++ b/scripts/bindgen2.py @@ -124,7 +124,7 @@ for decl in data: s += '*((i64*)&_sp[0]) = ' elif retTag == 'f': s += '*((f32*)&_sp[0]) = ' - elif retTag == 'd': + elif retTag == 'F': s += '*((f64*)&_sp[0]) = ' elif retTag == 'S': retTypeName = decl['ret']['name'] @@ -147,7 +147,7 @@ for decl in data: s += '*(i64*)&_sp[' + str(firstArgIndex + i) + ']' elif argTag == 'f': s += '*(f32*)&_sp[' + str(firstArgIndex + i) + ']' - elif argTag == 'd': + elif argTag == 'F': s += '*(f64*)&_sp[' + str(firstArgIndex + i) + ']' elif argTag == 'p': s += '(void*)((char*)_mem + *(i32*)&_sp[' + str(firstArgIndex + i) + '])' diff --git a/sdk/orca_exports.c b/sdk/orca_exports.c index c411ff9..0587f12 100644 --- a/sdk/orca_exports.c +++ b/sdk/orca_exports.c @@ -2,4 +2,4 @@ mp_event _OrcaRawEvent; -ORCA_EXPORT mp_event *_OrcaRawEventPtr; +ORCA_EXPORT mp_event *_OrcaRawEventPtr = &_OrcaRawEvent;