MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / emitFault

Method emitFault

lib/system/fault.cpp:117–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117[[noreturn]] void Fault::emitFault(ErrCode Error) {
118 assuming(localHandler != nullptr);
119 auto Buffer = stackTrace(localHandler->StackTraceBuffer);
120 localHandler->StackTraceSize = Buffer.size();
121 longjmp(localHandler->Buffer, static_cast<int>(Error.operator uint32_t()));
122}
123
124} // namespace WasmEdge

Callers

nothing calls this directly

Calls 2

stackTraceFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected