Open CASCADE Technology  7.3.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;

◆ 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;

◆ 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;

◆ 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;

◆ 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