janetDef

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.

@nogc
void
janetDef
(
T
)
(,
immutable(char)* name
,
T val
,
immutable(char)* documentation = ""
)

Meta