mmr_error_info()

Updated: April 19, 2023

Get error information for the context

Synopsis:

#include <mm/renderer.h>
const mmr_error_info_t* mmr_error_info(mmr_context_t *ctxt)

Arguments:

ctxt
A context handle

Library:

mmrndclient

Description:

This function gets error information. It returns a pointer to an internal buffer containing any error information related to the most recent API call made using the same context handle. The pointer and the error information it points to are valid only until another API call is made.

Note:

This function is thread-safe only when using different context handles in each call. The error information returned by one mmr_error_info() call can be overwritten by the next call to any API function with the same handle, whether that call is in the same or another thread. This function is neither interrupt handler-safe nor signal-handler safe.

Returns:

Pointer to error information, or a NULL pointer if the most recent call succeeded