Permalink
Browse files

add interface to allow creation of NCI objects from Ptr objects from HLL

  • Loading branch information...
1 parent c8b0124 commit 73ef4d04f31aec88aa363c5f43b4a5ae1cb31aaf @plobsing plobsing committed Apr 25, 2011
Showing with 20 additions and 0 deletions.
  1. +20 −0 src/pmc/nci.pmc
View
@@ -125,6 +125,26 @@ Initializes the NCI with a C<NULL> function pointer.
/*
+=item C<void set_pmc_keyed(PMC *key, PMC *p)>
+
+=item C<void set_pmc_keyed_str(STRING *key, PMC *p)>
+
+Call the equivalent C<set_pointer*> function.
+
+=cut
+
+*/
+
+ VTABLE void set_pmc_keyed(PMC *key, PMC *p) {
+ STATICSELF.set_pointer_keyed(key, VTABLE_get_pointer(INTERP, p));
+ }
+
+ VTABLE void set_pmc_keyed_str(STRING *key, PMC *p) {
+ STATICSELF.set_pointer_keyed_str(key, VTABLE_get_pointer(INTERP, p));
+ }
+
+/*
+
=item C<void set_pointer_keyed(PMC *key, void *func)>
Sets the specified function pointer and signature (C<*key>).

0 comments on commit 73ef4d0

Please sign in to comment.