janet

Undocumented in source.

Modules

c
module janet.c
Undocumented in source.
d
module janet.d
Undocumented in source.
func
module janet.func
Undocumented in source.
register
module janet.register
Undocumented in source.
vm
module janet.vm
Undocumented in source.
wrap
module janet.wrap
Undocumented in source.

Public Imports

janet.d
public import janet.d;
Undocumented in source.

Members

Aliases

deinitJanet
alias deinitJanet = janet_deinit
Undocumented in source.

Enums

JanetStrType
enum JanetStrType

An enum of the different kinds of things you can turn a string into.

Functions

get
Janet get(JanetTable* tbl, T key)

Gets a Janet value from a JanetTable. Can take any Janet-compatible type as a key.

get
Janet get(JanetKV* tbl, T key)

As above, but for a struct (JanetKV*).

initJanet
void initJanet()

Initialize Janet. This is done automatically if not compiled with the JanetD_NoAutoInit version, at the initialization of every thread. Compiling with the JanetD_NoAutoInit, these functions must be used instead, which do all the same stuff that is normally done automatically.

janetDef
void janetDef(JanetTable* env, immutable(char)* name, T val, immutable(char)* documentation)

Define an immutable value in Janet, as Janet's "def". Immutable means something slightly different in Janet than in D, so this doesn't take in a const or immutable value. Name and documentation should be string literals, or otherwise made to be zero-terminated outside of this.

janetVar
void janetVar(JanetTable* env, immutable(char)* name, T val, immutable(char)* documentation)

As janetDef, but value is mutable, as Janet's "var".

Imports

Janet (from janet.c)
public import janet.c : Janet, JanetFunction, JanetTable, JanetKV;
Undocumented in source.
JanetFunction (from janet.c)
public import janet.c : Janet, JanetFunction, JanetTable, JanetKV;
Undocumented in source.
JanetKV (from janet.c)
public import janet.c : Janet, JanetFunction, JanetTable, JanetKV;
Undocumented in source.
JanetTable (from janet.c)
public import janet.c : Janet, JanetFunction, JanetTable, JanetKV;
Undocumented in source.

Structs

JanetAbstractClassHelper
struct JanetAbstractClassHelper(T)
Undocumented in source.

Variables

coreEnv
JanetTable* coreEnv;

The core environment

Meta