Hi all,
I'm working on some LibJIT externs (source
here), and they only seem to work Neko, which is odd because I include all the standard C++/Neko headers:
[project/common/ExternalInterface.cpp]#define IMPLEMENT_API
#if defined(HX_WINDOWS) || defined(HX_MACOS) || defined(HX_LINUX)
#define NEKO_COMPATIBLE
#endif
#include <hx/CFFI.h>
#include <jit/jit.h>
Full source is on GithubAnd the binding:
[libjit/Context.hx]package libjit;
abstract Context(Dynamic) {
public inline function new()
this = create_context();
public inline function lock():Bool
try {
context_build_start(this);
return true;
} catch(e:Dynamic)
return false;
public inline function unlock():Bool
try {
context_build_end(this);
return true;
} catch(e:Dynamic)
return false;
public inline function destroy():Void
context_destroy(this);
static var create_context:Void -> Dynamic = Lib.load("jit", "hx_jit_create_context", 0);
static var context_build_start:Dynamic -> Void = Lib.load("jit", "hx_jit_context_build_start", 1);
static var context_build_end:Dynamic -> Void = Lib.load("jit", "hx_jit_context_build_end", 1);
static var context_destroy:Dynamic -> Void = Lib.load("jit", "hx_jit_context_destroy", 1);
}
Now, I'm getting the following error:
Error : Null Function Pointer
Even with -debug, no useful output is generated. Any advice? Thanks.