Indexasmjit::DebugUtils

asmjit::DebugUtils Namespace Reference [¶]

Debugging utilities.

Functions

const char* DebugUtils::error_as_string()nodiscardnoexcept[¶]

Returns a printable version of asmjit::Error code.

void DebugUtils::debug_output(
const char* str
)noexcept[¶]

Called to output debugging messages.

void DebugUtils::assertion_failure(
const char* file,
int line,
const char* msg
)noexcept[¶]

Called on assertion failure.

Parameters
fileSource file name where it happened.
lineLine in the source file.
msgMessage to display.

If you have problems with assertion failures a breakpoint can be put at assertion_failure() function (asmjit/core/globals.cpp). A call stack will be available when such assertion failure is triggered. AsmJit always returns errors on failures, assertions are a last resort and usually mean unrecoverable state due to out of range array access or totally invalid arguments like nullptr where a valid pointer should be provided, etc...