error

error ::

error

Overloaded function setting up error state. Error state is global variable holding _Error instance, error function sets desired values and return pointer to this global. That means the Error must be handled immediately after it’s returned from failing function since every Error state points to the same memory.

Error creating does not require any HEAP memory alocations.

fn (code: s32) Error #inline

Sets error code.


fn (format: string, args: ...) Error #inline

Sets error state with ERR_UNKNOWN code and formatted message.


fn (code: s32, format: string, args: ...) Error

Sets error state with code and formatted message.

Declared in: error.bl