MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / createAbstract

Function createAbstract

test/cffi/project/Project.cpp:322–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

320
321
322value createAbstract()
323{
324 if (!myKind)
325 myKind = alloc_kind();
326
327 value abs = create_abstract(myKind, sizeof(int), destroyMyKind);
328 int *data = (int *)val_get_handle(abs,myKind);
329 *data = 99;
330 return abs;
331}
332DEFINE_PRIM(createAbstract, 0);
333
334

Callers

nothing calls this directly

Calls 3

alloc_kindFunction · 0.85
create_abstractFunction · 0.85
val_get_handleFunction · 0.85

Tested by

no test coverage detected