wren.value

Undocumented in source.

Members

Aliases

SymbolTable
alias SymbolTable = StringBuffer
Undocumented in source.
Value
alias Value = ulong
Undocumented in source.

Enums

FiberState
enum FiberState
Undocumented in source.
MethodType
enum MethodType
Undocumented in source.
ObjType
enum ObjType
Undocumented in source.
ValueType
enum ValueType
Undocumented in source.

Functions

AS_BOOL
bool AS_BOOL(Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
AS_BOOL
bool AS_BOOL(Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
AS_CLASS
ObjClass* AS_CLASS(Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
AS_CLOSURE
ObjClosure* AS_CLOSURE(Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
AS_CSTRING
const(char)* AS_CSTRING(Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
AS_FIBER
ObjFiber* AS_FIBER(Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
AS_FN
ObjFn* AS_FN(Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
AS_FOREIGN
ObjForeign* AS_FOREIGN(Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
AS_INSTANCE
ObjInstance* AS_INSTANCE(Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
AS_LIST
ObjList* AS_LIST(Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
AS_MAP
ObjMap* AS_MAP(Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
AS_MODULE
ObjModule* AS_MODULE(Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
AS_NUM
double AS_NUM(Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
AS_OBJ
Obj* AS_OBJ(Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
AS_OBJ
Obj* AS_OBJ(Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
AS_RANGE
ObjRange* AS_RANGE(Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
AS_STRING
ObjString* AS_STRING(Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
BOOL_VAL
Value BOOL_VAL(bool value)
Undocumented in source. Be warned that the author may not have intended to support it.
CONST_STRING
Value CONST_STRING(WrenVM* vm, const(char)[] text)
Undocumented in source. Be warned that the author may not have intended to support it.
GET_TAG
int GET_TAG(Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
IS_BOOL
bool IS_BOOL(Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
IS_CLASS
bool IS_CLASS(Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
IS_CLOSURE
bool IS_CLOSURE(Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
IS_FALSE
bool IS_FALSE(Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
IS_FALSE
bool IS_FALSE(Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
IS_FIBER
bool IS_FIBER(Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
IS_FN
bool IS_FN(Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
IS_FOREIGN
bool IS_FOREIGN(Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
IS_INSTANCE
bool IS_INSTANCE(Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
IS_LIST
bool IS_LIST(Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
IS_MAP
bool IS_MAP(Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
IS_NULL
bool IS_NULL(Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
IS_NULL
bool IS_NULL(Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
IS_NUM
bool IS_NUM(Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
IS_NUM
bool IS_NUM(Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
IS_OBJ
bool IS_OBJ(Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
IS_OBJ
bool IS_OBJ(Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
IS_RANGE
bool IS_RANGE(Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
IS_STRING
bool IS_STRING(Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
IS_UNDEFINED
bool IS_UNDEFINED(Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
IS_UNDEFINED
bool IS_UNDEFINED(Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
NUM_VAL
Value NUM_VAL(double num)
Undocumented in source. Be warned that the author may not have intended to support it.
OBJ_VAL
Value OBJ_VAL(T* obj)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenAppendCallFrame
void wrenAppendCallFrame(WrenVM* vm, ObjFiber* fiber, ObjClosure* closure, Value* stackStart)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenBindMethod
void wrenBindMethod(WrenVM* vm, ObjClass* classObj, int symbol, Method method)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenBindSuperclass
void wrenBindSuperclass(WrenVM* vm, ObjClass* subclass, ObjClass* superclass)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenBlackenObjects
void wrenBlackenObjects(WrenVM* vm)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenBlackenSymbolTable
void wrenBlackenSymbolTable(WrenVM* vm, SymbolTable* symbolTable)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenEnsureStack
void wrenEnsureStack(WrenVM* vm, ObjFiber* fiber, int needed)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenFreeObj
void wrenFreeObj(WrenVM* vm, Obj* obj)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenFunctionBindName
void wrenFunctionBindName(WrenVM* vm, ObjFn* fn, const(char)* name, int length)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenGrayBuffer
void wrenGrayBuffer(WrenVM* vm, ValueBuffer* buffer)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenGrayObj
void wrenGrayObj(WrenVM* vm, Obj* obj)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenGrayValue
void wrenGrayValue(WrenVM* vm, Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenListIndexOf
int wrenListIndexOf(WrenVM* vm, ObjList* list, Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenListInsert
void wrenListInsert(WrenVM* vm, ObjList* list, Value value, uint index)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenListRemoveAt
Value wrenListRemoveAt(WrenVM* vm, ObjList* list, uint index)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenMapClear
void wrenMapClear(WrenVM* vm, ObjMap* map)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenMapGet
Value wrenMapGet(ObjMap* map, Value key)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenMapRemoveKey
Value wrenMapRemoveKey(WrenVM* vm, ObjMap* map, Value key)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenMapSet
void wrenMapSet(WrenVM* vm, ObjMap* map, Value key, Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenNewClass
ObjClass* wrenNewClass(WrenVM* vm, ObjClass* superclass, int numFields, ObjString* name)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenNewClosure
ObjClosure* wrenNewClosure(WrenVM* vm, ObjFn* fn)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenNewFiber
ObjFiber* wrenNewFiber(WrenVM* vm, ObjClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenNewForeign
ObjForeign* wrenNewForeign(WrenVM* vm, ObjClass* classObj, size_t size)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenNewFunction
ObjFn* wrenNewFunction(WrenVM* vm, ObjModule* module_, int maxSlots)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenNewInstance
Value wrenNewInstance(WrenVM* vm, ObjClass* classObj)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenNewList
ObjList* wrenNewList(WrenVM* vm, uint numElements)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenNewMap
ObjMap* wrenNewMap(WrenVM* vm)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenNewModule
ObjModule* wrenNewModule(WrenVM* vm, ObjString* name)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenNewRange
Value wrenNewRange(WrenVM* vm, double from, double to, bool isInclusive)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenNewSingleClass
ObjClass* wrenNewSingleClass(WrenVM* vm, int numFields, ObjString* name)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenNewString
Value wrenNewString(WrenVM* vm, const(char)* text)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenNewStringFromRange
Value wrenNewStringFromRange(WrenVM* vm, ObjString* source, int start, uint count, int step)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenNewStringLength
Value wrenNewStringLength(WrenVM* vm, const(char)* text, size_t length)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenNewUpvalue
ObjUpvalue* wrenNewUpvalue(WrenVM* vm, Value* value)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenNumToString
Value wrenNumToString(WrenVM* vm, double value)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenStringCodePointAt
Value wrenStringCodePointAt(WrenVM* vm, ObjString* string_, uint index)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenStringFind
uint wrenStringFind(ObjString* haystack, ObjString* needle, uint start)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenStringFormat
Value wrenStringFormat(WrenVM* vm, const(char)* format, ...)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenStringFromByte
Value wrenStringFromByte(WrenVM* vm, ubyte value)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenStringFromCodePoint
Value wrenStringFromCodePoint(WrenVM* vm, int value)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenSymbolTableAdd
int wrenSymbolTableAdd(WrenVM* vm, SymbolTable* symbols, const(char)* name, size_t length)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenSymbolTableClear
void wrenSymbolTableClear(WrenVM* vm, SymbolTable* symbols)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenSymbolTableEnsure
int wrenSymbolTableEnsure(WrenVM* vm, SymbolTable* symbols, const(char)* name, size_t length)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenSymbolTableFind
int wrenSymbolTableFind(SymbolTable* symbols, const(char)* name, size_t length)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenSymbolTableInit
void wrenSymbolTableInit(SymbolTable* symbols)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenValuesEqual
bool wrenValuesEqual(Value a, Value b)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

FALSE_VAL
enum FALSE_VAL;
Undocumented in source.
FALSE_VAL
enum FALSE_VAL;
Undocumented in source.
GROW_FACTOR
enum GROW_FACTOR;
Undocumented in source.
INITIAL_CALL_FRAMES
enum INITIAL_CALL_FRAMES;
Undocumented in source.
MAP_LOAD_PERCENT
enum MAP_LOAD_PERCENT;
Undocumented in source.
MASK_TAG
enum MASK_TAG;
Undocumented in source.
MIN_CAPACITY
enum MIN_CAPACITY;
Undocumented in source.
NULL_VAL
enum NULL_VAL;
Undocumented in source.
NULL_VAL
enum NULL_VAL;
Undocumented in source.
QNAN
enum QNAN;
Undocumented in source.
SIGN_BIT
enum SIGN_BIT;
Undocumented in source.
TAG_FALSE
enum TAG_FALSE;
Undocumented in source.
TAG_NAN
enum TAG_NAN;
Undocumented in source.
TAG_NULL
enum TAG_NULL;
Undocumented in source.
TAG_TRUE
enum TAG_TRUE;
Undocumented in source.
TAG_UNDEFINED
enum TAG_UNDEFINED;
Undocumented in source.
TAG_UNUSED2
enum TAG_UNUSED2;
Undocumented in source.
TAG_UNUSED3
enum TAG_UNUSED3;
Undocumented in source.
TAG_UNUSED4
enum TAG_UNUSED4;
Undocumented in source.
TRUE_VAL
enum TRUE_VAL;
Undocumented in source.
TRUE_VAL
enum TRUE_VAL;
Undocumented in source.
UNDEFINED_VAL
enum UNDEFINED_VAL;
Undocumented in source.
UNDEFINED_VAL
enum UNDEFINED_VAL;
Undocumented in source.

Static functions

allocateString
ObjString* allocateString(WrenVM* vm, size_t length)
Undocumented in source. Be warned that the author may not have intended to support it.
blackenClass
void blackenClass(WrenVM* vm, ObjClass* classObj)
Undocumented in source. Be warned that the author may not have intended to support it.
blackenClosure
void blackenClosure(WrenVM* vm, ObjClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
blackenFiber
void blackenFiber(WrenVM* vm, ObjFiber* fiber)
Undocumented in source. Be warned that the author may not have intended to support it.
blackenFn
void blackenFn(WrenVM* vm, ObjFn* fn)
Undocumented in source. Be warned that the author may not have intended to support it.
blackenForeign
void blackenForeign(WrenVM* vm, ObjForeign* foreign)
Undocumented in source. Be warned that the author may not have intended to support it.
blackenInstance
void blackenInstance(WrenVM* vm, ObjInstance* instance)
Undocumented in source. Be warned that the author may not have intended to support it.
blackenList
void blackenList(WrenVM* vm, ObjList* list)
Undocumented in source. Be warned that the author may not have intended to support it.
blackenMap
void blackenMap(WrenVM* vm, ObjMap* map)
Undocumented in source. Be warned that the author may not have intended to support it.
blackenModule
void blackenModule(WrenVM* vm, ObjModule* module_)
Undocumented in source. Be warned that the author may not have intended to support it.
blackenObject
void blackenObject(WrenVM* vm, Obj* obj)
Undocumented in source. Be warned that the author may not have intended to support it.
blackenRange
void blackenRange(WrenVM* vm, ObjRange* range)
Undocumented in source. Be warned that the author may not have intended to support it.
blackenString
void blackenString(WrenVM* vm, ObjString* str)
Undocumented in source. Be warned that the author may not have intended to support it.
blackenUpvalue
void blackenUpvalue(WrenVM* vm, ObjUpvalue* upvalue)
Undocumented in source. Be warned that the author may not have intended to support it.
findEntry
bool findEntry(MapEntry* entries, uint capacity, Value key, MapEntry** result)
Undocumented in source. Be warned that the author may not have intended to support it.
hashBits
uint hashBits(ulong hash)
Undocumented in source. Be warned that the author may not have intended to support it.
hashNumber
uint hashNumber(double num)
Undocumented in source. Be warned that the author may not have intended to support it.
hashObject
uint hashObject(Obj* object)
Undocumented in source. Be warned that the author may not have intended to support it.
hashString
void hashString(ObjString* str)
Undocumented in source. Be warned that the author may not have intended to support it.
hashValue
uint hashValue(Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
initObj
void initObj(WrenVM* vm, Obj* obj, ObjType type, ObjClass* classObj)
Undocumented in source. Be warned that the author may not have intended to support it.
insertEntry
bool insertEntry(MapEntry* entries, uint capacity, Value key, Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
resizeMap
void resizeMap(WrenVM* vm, ObjMap* map, uint capacity)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenHasError
bool wrenHasError(ObjFiber* fiber)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenIsBool
bool wrenIsBool(Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenIsObjType
bool wrenIsObjType(Value value, ObjType type)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenMapIsValidKey
bool wrenMapIsValidKey(Value arg)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenNumToValue
Value wrenNumToValue(double num)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenObjectToValue
Value wrenObjectToValue(Obj* obj)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenStringEqualsCString
bool wrenStringEqualsCString(ObjString* a, const(char)* b, size_t length)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenValueToNum
double wrenValueToNum(Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenValuesSame
bool wrenValuesSame(Value a, Value b)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

CallFrame
struct CallFrame
Undocumented in source.
FnDebug
struct FnDebug
Undocumented in source.
MapEntry
struct MapEntry
Undocumented in source.
Method
struct Method
Undocumented in source.
Obj
struct Obj
Undocumented in source.
ObjClass
struct ObjClass
Undocumented in source.
ObjClosure
struct ObjClosure
Undocumented in source.
ObjFiber
struct ObjFiber
Undocumented in source.
ObjFn
struct ObjFn
Undocumented in source.
ObjForeign
struct ObjForeign
Undocumented in source.
ObjInstance
struct ObjInstance
Undocumented in source.
ObjList
struct ObjList
Undocumented in source.
ObjMap
struct ObjMap
Undocumented in source.
ObjModule
struct ObjModule
Undocumented in source.
ObjRange
struct ObjRange
Undocumented in source.
ObjString
struct ObjString
Undocumented in source.
ObjUpvalue
struct ObjUpvalue
Undocumented in source.
Value
struct Value
Undocumented in source.
WrenHandle
struct WrenHandle
Undocumented in source.

Meta