Defines | Functions
core/vgui/vgui_macro.h File Reference

Some handy preprocessor macros commonly used in vgui. More...

Go to the source code of this file.

Defines

#define vgui_macro_report_errors   vgui_macro_error_reporter(__FILE__,__LINE__)
 Handy gl debugging macro.
#define vgui_macro_warning   (vcl_cerr << __FILE__ ", line " << __LINE__ << ": ")
 Handy for printing warnings stamped with the location of the source line.

Functions

void vgui_macro_error_reporter (char const *FILE, int LINE)

Detailed Description

Some handy preprocessor macros commonly used in vgui.

Author:
fsm Do not include <vcl_iostream.h> from this file.

Definition in file vgui_macro.h.


Define Documentation

#define vgui_macro_report_errors   vgui_macro_error_reporter(__FILE__,__LINE__)

Handy gl debugging macro.

Sprinkle through your code, and it will report any accumulated OpenGL errors

Definition at line 17 of file vgui_macro.h.

#define vgui_macro_warning   (vcl_cerr << __FILE__ ", line " << __LINE__ << ": ")

Handy for printing warnings stamped with the location of the source line.

E.g. vgui_macro_warning << "no more megabytes" << endl; You will need to include vcl_iostream to use this.

Definition at line 23 of file vgui_macro.h.


Function Documentation

void vgui_macro_error_reporter ( char const *  FILE,
int  LINE 
)

Definition at line 20 of file vgui_macro.cxx.