pub type Dart_DwarfStackTraceFootnoteCallback = Option<unsafe extern "C" fn(addresses: *mut *mut c_void, count: isize) -> *mut c_char>;
Expand description

Callback provided by the embedder that is used by the VM to produce footnotes appended to DWARF stack traces.

Whenever VM formats a stack trace as a string it would call this callback passing raw program counters for each frame in the stack trace.

Embedder can then return a string which if not-null will be appended to the formatted stack trace.

Returned string is expected to be malloc() allocated. VM takes ownership of the returned string and will free() it.

\param addresses raw program counter addresses for each frame \param count number of elements in the addresses array

Aliased Type§

enum Dart_DwarfStackTraceFootnoteCallback {
    None,
    Some(unsafe extern "C" fn(_: *mut *mut c_void, _: isize) -> *mut i8),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut *mut c_void, _: isize) -> *mut i8)

Some value of type T.