Skip to content

Commit

Permalink
Support passing unboxed pointers to native routines
Browse files Browse the repository at this point in the history
  • Loading branch information
niner committed Oct 17, 2021
1 parent 30abe2f commit ca182dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/nativecall_dyncall.c
Expand Up @@ -987,6 +987,9 @@ MVMObject * MVM_nativecall_dispatch(MVMThreadContext *tc, MVMObject *res_type,
case MVM_NATIVECALL_ARG_ULONGLONG:
dcArgLongLong(vm, value);
break;
case MVM_NATIVECALL_ARG_CPOINTER:
dcArgPointer(vm, (void*)value);
break;
default:
MVM_telemetry_interval_stop(tc, interval_id, "nativecall invoke failed");
MVM_exception_throw_adhoc(tc, "Internal error: unhandled dyncall argument type");
Expand Down

0 comments on commit ca182dd

Please sign in to comment.