Intel® C++ Compiler 16.0 User and Reference Guide

_GFX_clear_last_error

Resets the most recent error code detected for the current thread. This topic only applies to Intel® 64 and IA-32 architectures targeting Intel® Graphics Technology.

Syntax

void _GFX_clear_last_error();

Parameters

None

Description

This function resets the most recent error code detected by the Intel® Graphics Technology runtime for the current thread.

This function is useful because the last error code variable returned by the function _GFX_get_last_error is never reset to GFX_SUCCESS upon successful execution of any API call. It retains, and returns, the most recent error code.

Some non-recoverable errors, such as driver initialization failures, are set globally for the duration of program execution, and are never reset to GFX_SUCCESS by _GFX_clear_last_error.

Return Values

None