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)

Emulates the effects of janet_pcall using a thread-local fiber and 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)

The same, but requires a type and an instance of that type as an argument. This is due to many class methods requiring context pointers. This is mostly only useful for class/struct registering.

Meta