dmi_error_peek_last

Synopsis

#include <opendmi/error.h>

dmi_error_t *dmi_error_peek_last(dmi_context_t *context);

Description

The dmi_error_peek_last function returns a pointer to the newest error descriptor in the error queue of context without removing it. The queue is not modified.

Parameters

context

DMI context.

Return value

Returns a pointer to the newest dmi_error_t in the queue, or nullptr if context is nullptr or the error queue is empty.

Errors

None.