1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0024975: Improve of preprocessor directives in header files to be equal to the file name

Preprocessor directives were changed or created by function "check_headers" from script adm/upgrade.tcl (CR24816)
This commit is contained in:
ski
2021-10-18 11:52:10 +03:00
committed by smoskvin
parent 4f7ad5fb76
commit 5bd54bef32
142 changed files with 303 additions and 279 deletions

View File

@@ -11,6 +11,9 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef Interface_Statics_HeaderFile
#define Interface_Statics_HeaderFile
// Macros to help static Handles not to be "constructed" before main run
// In order to avoid it, the Handle to be statically reserved is encapsulated
// in a structure itself designated through a Null Pointer :
@@ -90,3 +93,5 @@ Handle(type)& var = var##_s->H;
#define InitHandleVal(type,var,value) \
if(!var##_s) { var##_s=new type##_struc; var##_s->H=value; }\
Handle(type)& var = var##_s->H;
#endif

View File

@@ -11,6 +11,9 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef Interface_Translates_HeaderFile
#define Interface_Translates_HeaderFile
// Interface_Translates.hxx
// This set of macros provides some simple translation formula, i.e.
@@ -81,3 +84,5 @@ if (!seq.IsNull()) {\
for (nument = numlow; nument <= numup; nument ++)\
seq->Append(arr->Value(nument));\
}
#endif