|
Kiwi Engine
VM for interpreter
|
Define KEObject class. More...
Go to the source code of this file.
Data Structures | |
| struct | KEObjectMethods |
| struct | KEObject |
Typedefs | |
| typedef const char *(* | KETypeNameOfObjectFuncRef )(void) |
| typedef void(* | KEDumpObjectFuncRef )(struct CNText *outbuf, struct KEObject *src) |
Enumerations | |
| enum | KEObjectType { KEFrameObject, KEArrayObject, KEDictionaryObject, KEPathObject, KEFunctionObject, KEBuiltinFuncObject } |
Functions | |
| struct KEObject * | KEAllocateObject (KEObjectType type, size_t objsize, const struct KEObjectMethods *methods, struct CNResource *resource) |
| Allocate the sub class of KEObject. More... | |
Define KEObject class.
| typedef void(* KEDumpObjectFuncRef)(struct CNText *outbuf, struct KEObject *src) |
Function to dump the context of the object
| typedef const char*(* KETypeNameOfObjectFuncRef)(void) |
Function to get the type name
| enum KEObjectType |
Kind of object
| struct KEObject* KEAllocateObject | ( | KEObjectType | type, |
| size_t | objsize, | ||
| const struct KEObjectMethods * | methods, | ||
| struct CNResource * | resource | ||
| ) |
Allocate the sub class of KEObject.
| type | Type of object |
| objsize | Size of the sub class |
| methods | Methods for the sub class |
| resource | Resource to allocate the object |
1.8.5