Open CASCADE Technology  7.5.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:125

◆ 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:125

◆ 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:125
GLsizei GLboolean const GLfloat * value
Definition: OpenGl_GLESExtensions.hxx:141

◆ 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:125

◆ 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