Open CASCADE Technology  7.7.0
Macros
Interface_Statics.hxx File Reference

Macros

#define StaticHandle(type, var)   static struct type##_struc { Handle(type) H; } *var##_s = NULL
 
#define StaticHandleA(type, var)   static struct type##_struc *var##_s = NULL
 
#define UseHandle(type, var)   Handle(type)& var = var##_s->H
 
#define InitHandle(type, var)
 
#define InitHandleVoid(type, var)
 
#define InitHandleArgs(type, var, args)
 
#define InitHandleVal(type, var, value)
 

Macro Definition Documentation

◆ InitHandle

#define InitHandle (   type,
  var 
)
Value:
if(!var##_s) { var##_s=new type##_struc; }\
Handle(type)& var = var##_s->H;
GLuint GLuint GLsizei GLenum type
Definition: OpenGl_GLESExtensions.hxx:129

◆ InitHandleArgs

#define InitHandleArgs (   type,
  var,
  args 
)
Value:
if(!var##_s) { var##_s=new type##_struc; var##_s->H=new type args; }\
Handle(type)& var = var##_s->H;
GLuint GLuint GLsizei GLenum type
Definition: OpenGl_GLESExtensions.hxx:129

◆ InitHandleVal

#define InitHandleVal (   type,
  var,
  value 
)
Value:
if(!var##_s) { var##_s=new type##_struc; var##_s->H=value; }\
Handle(type)& var = var##_s->H;
GLuint GLuint GLsizei GLenum type
Definition: OpenGl_GLESExtensions.hxx:129
GLsizei GLboolean const GLfloat * value
Definition: OpenGl_GLESExtensions.hxx:145

◆ InitHandleVoid

#define InitHandleVoid (   type,
  var 
)
Value:
if(!var##_s) { var##_s=new type##_struc; var##_s->H=new type; }\
Handle(type)& var = var##_s->H;
GLuint GLuint GLsizei GLenum type
Definition: OpenGl_GLESExtensions.hxx:129

◆ StaticHandle

#define StaticHandle (   type,
  var 
)    static struct type##_struc { Handle(type) H; } *var##_s = NULL

◆ StaticHandleA

#define StaticHandleA (   type,
  var 
)    static struct type##_struc *var##_s = NULL

◆ UseHandle

#define UseHandle (   type,
  var 
)    Handle(type)& var = var##_s->H