makeJanetCFunc

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.

  1. JanetDFunction makeJanetCFunc(T argObj)
    template makeJanetCFunc(alias func, T)
    makeJanetCFunc
    ()
    if (
    is(T == class) ||
    isPointer!T &&
    is(PointerTarget!T == struct)
    )
  2. template makeJanetCFunc(alias func)

Members

Aliases

JanetDFunction
alias JanetDFunction = SetFunctionAttributes!(JanetCFunction, "C", functionAttributes!func)
Undocumented in source.

Functions

makeJanetCFunc
JanetDFunction makeJanetCFunc(T argObj)
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

ourJanetFunc
Janet ourJanetFunc(int argc, Janet* argv)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

obj
T obj;
Undocumented in source.

Meta