Is it possible to pass a Hashlink abstract from c++ using hl_dyn_call?
Stepping through the call, it fails on trying to cast the abstract to a dynamic in hl_dyn_castp.
After digging a bit more, i created an hl_type abstract for “foo”, but it seems the hl_same_type check compares a.abs_name == b.abs_name which will fail.
// psuedo code
// callback is rooted
vclosure* callback;
void invoke(Foo* foo)
{
vdynamic* args[1];
args[0] = hl_make_dyn(fpp, &hlt_abstract);
hl_dyn_call(callback, args, 1); // cast error here
}
// haxe function sig
function callback(value:hl.Abstract<"foo">):Void
Thanks