| Flutter Impeller |

Public Member Functions | Public Attributes | List of all members
impeller::AutoErrorCheck Struct Reference

`#include <proc_table_gles.h>`

## Public Member Functions
| AutoErrorCheck (PFNGLGETERRORPROC error, const char *name)
| ~AutoErrorCheck ()

## Public Attributes
const PFNGLGETERRORPROC | error_fn
const char * | name

## Detailed Description

Definition at line 21 of file proc_table_gles.h.

## Constructor & Destructor Documentation

## ◆ AutoErrorCheck()

impeller::AutoErrorCheck::AutoErrorCheck | ( | PFNGLGETERRORPROC | error,
|  | const char * | name
| ) |  |
| inline

Definition at line 25 of file proc_table_gles.h.

26 : error_fn(error), name(name) {}

## ◆ ~AutoErrorCheck()

impeller::AutoErrorCheck::~AutoErrorCheck | ( |  | ) |
| inline

Definition at line 28 of file proc_table_gles.h.

28 {
29 if (error_fn) {
30 auto error = error_fn();
31 FML_CHECK(error == GL_NO_ERROR)
32 << "GL Error " << GLErrorToString(error) << "(" << error << ")"
33 << " encountered on call to " << name;
34 }
35 }

References error_fn, impeller::GLErrorToString(), and name.

## Member Data Documentation

## ◆ error_fn

const PFNGLGETERRORPROC impeller::AutoErrorCheck::error_fn

Definition at line 22 of file proc_table_gles.h.

Referenced by ~AutoErrorCheck().

## ◆ name

const char* impeller::AutoErrorCheck::name

Definition at line 23 of file proc_table_gles.h.

Referenced by ~AutoErrorCheck().

The documentation for this struct was generated from the following file:

- impeller/renderer/backend/gles/proc_table_gles.h

impeller::AutoErrorCheck::name
const char * name
Definition: proc_table_gles.h:23
impeller::GLErrorToString
const char * GLErrorToString(GLenum value)
Definition: proc_table_gles.cc:15
impeller::AutoErrorCheck::error_fn
const PFNGLGETERRORPROC error_fn
Definition: proc_table_gles.h:22