Crate emojicode

Source

Macros§

count_args_space
emoji_functions
Shorthand for defining functions compatible with the linking table, and an accompanying linking table.
linking_table
package_version
Given the major and minor version this generate the package version.
prepare_class
Used for the “prepareClass” shenanigans. I suggest you look up the emojicode docs in order to figure out what to do here.

Structs§

Emojicode_Block
Emojicode_Class
Emojicode_Function
Emojicode_FunctionObjectVariableRecord
Emojicode_Object
Emojicode_ObjectVariableRecord
Used to signify the compiler that from the @c from -th instruction to the to @c to -th instruction the variable at index @c variableIndex contains an object reference.
Emojicode_PackageVersion
The version of a package. Must follow semantic versioning 2.0 http://semver.org
Emojicode_ProtocolDispatchTable
Emojicode_StackFrame
Emojicode_Thread

Constants§

ContextType_None
ContextType_Object
ContextType_ValueReference
ObjectVariableType_Box
There is an object pointer a the given index if the value at @c condition is truthy
ObjectVariableType_Condition
There is an object pointer a the given index if the value at @c condition is truthy
ObjectVariableType_ConditionalSkip
There is an object pointer a the given index if the value at @c condition is truthy
ObjectVariableType_Simple
There is an object pointer a the given index

Traits§

EmojicodeObjectImpl
EmojicodeThreadImpl
FromValue
ToValue
Converts Rust types to Emojicode Values. Useful for example for returning things from a function.

Functions§

Emojicode_Class_inheritsFrom
Returns true if @c a inherits from class @c from
Emojicode_Thread_popStack
Pops the stack associated with this thread
Emojicode_Thread_pushReservedFrame
Pushes the reserved stack frame onto the stack
Emojicode_Thread_pushStack
Pushes a new stack frame
Emojicode_Thread_reserveFrame
Reserves a new stack frame which can later be pushed with @c stackPushReservedFrame /// @returns A pointer to the memory reserved for the variables.
Emojicode_executeCallableExtern
You can use this function to call a callable object. It’s internally Garbage-Collector safe.
Emojicode_stringFromChar
Creates a string from a UTF8 C string. The string must be null terminated!
Emojicode_stringToCString
Converts the string to a UTF8 char array and returns it. @warning The returned pointer points into an object allocated by the Emojicode memory manager. It must not be free’d and will not survive the imminent garbage collector cycle.

Type Aliases§

ContextType
EmojicodeChar
A Unicode codepoint
EmojicodeInstruction
A byte-code instruction
Emojicode_EmojicodeInteger
Emojicode_FunctionFunctionPointer
ObjectVariableType
__uint16_t
__uint32_t
int_fast64_t
uint_fast16_t

Unions§

Emojicode_Object__bindgen_ty_1
Emojicode_Value
A one-Emojicode-word large value without type information.