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

Function allocAbstract

test/cffi/project/Project.cpp:307–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305
306
307value allocAbstract()
308{
309 if (!myKind)
310 myKind = alloc_kind();
311
312 void *data = new int(99);
313
314 value abs = alloc_abstract(myKind, data);
315 val_gc(abs, freeMyKind);
316 return abs;
317}
318DEFINE_PRIM(allocAbstract, 0);
319
320

Callers

nothing calls this directly

Calls 3

alloc_kindFunction · 0.85
alloc_abstractFunction · 0.85
val_gcFunction · 0.85

Tested by

no test coverage detected