Skip to content

Commit aabbd0a

Browse files
committed
Fix pre-compilation of modules that use NativeCall.
1 parent 55fe6c6 commit aabbd0a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/6model/reprs/NativeCall.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,14 @@ static storage_spec get_storage_spec(PARROT_INTERP, STable *st) {
9595
return spec;
9696
}
9797

98+
/* We can't actually serialize the handle, but since this REPR gets inlined
99+
* we just do nothing here since it may well have never been opened. Various
100+
* more involved approaches are possible... */
101+
static void serialize(PARROT_INTERP, STable *st, void *data, SerializationWriter *writer) {
102+
}
103+
static void deserialize(PARROT_INTERP, STable *st, void *data, SerializationReader *reader) {
104+
}
105+
98106
/* Initializes the NativeCall representation. */
99107
REPROps * NativeCall_initialize(PARROT_INTERP,
100108
PMC * (* wrap_object_func_ptr) (PARROT_INTERP, void *obj),
@@ -112,5 +120,7 @@ REPROps * NativeCall_initialize(PARROT_INTERP,
112120
this_repr->gc_free = gc_free;
113121
this_repr->gc_cleanup = gc_cleanup;
114122
this_repr->get_storage_spec = get_storage_spec;
123+
this_repr->serialize = serialize;
124+
this_repr->deserialize = deserialize;
115125
return this_repr;
116126
}

0 commit comments

Comments
 (0)