janet.func

Undocumented in source.

Members

Functions

bar
int bar(int y)
Undocumented in source. Be warned that the author may not have intended to support it.
callJanet
Janet callJanet(JanetFunction* fun, T args)

A wrapper around call_janet using D-like varargs.

foo
int foo(int x)
Undocumented in source. Be warned that the author may not have intended to support it.
registerFunctionWithJanet
void registerFunctionWithJanet()

Makes a function globally available with Janet.

Templates

makeJanetCFunc
template makeJanetCFunc(alias func)

Wraps around a function, allowing it to be called in Janet.

makeJanetCFunc
template makeJanetCFunc(alias func, T, Args...)

The same, but requires a delegate or function pointer be put in as an argument. This is due to many class methods requiring context pointers. This is mostly only useful for class registering.

Meta