jsrf.h scalar deleting destructors return void *

They previously returned a pointer to the class type, but this isn't
accurate to the signature indicated by MSVC's name mangling.
This commit is contained in:
KeybadeBlox 2026-02-18 18:15:25 -05:00
parent fd6815ae42
commit c020c2e247
2 changed files with 3 additions and 3 deletions

View file

@ -5,7 +5,7 @@
function fn_ptr(cls, signature, ret, fname, args) {
# Convert the given method signature to a function pointer
if ($1 ~ /^~/) # Special case for virtual destructor
return "\t\t" cls " * __attribute__((thiscall)) "\
return "\t\t void * __attribute__((thiscall)) "\
"(*scalar_deleting_destructor)("\
cls " *, "\
"BOOL"\