Archived issue #0025859
Coding Rules - Macro TRANSLOG should be handled
Description
The macros TRANSLOG is defined by default (STEPControl_ActorRead.cxx) and seems to be used to print debug messages:
#define TRANSLOG
...
#ifdef TRANSLOG
if (TP->TraceLevel() > 1)
sout<<" -- Actor : Ent.n0 "<<TP->Model()->Number(PD)<<" -> Shared Ent.no"<<TP->Model()->Number(NAUO)<<endl;
#endif
Public activity
1 archived note
Participants are labeled by their role within this record.
Dear gka,
could you please comment on how code escaped by macros TRANSLOG should be handled?
The options are:
- Leave code as is.
- Leave behavior as is, but remove TRANSLOG macro checks (which currently always defined).
- Use OCCT_DEBUG instead of TRANSLOG.
- Entirely remove code escaped by TRANSLOG.
could you please comment on how code escaped by macros TRANSLOG should be handled?
The options are:
- Leave code as is.
- Leave behavior as is, but remove TRANSLOG macro checks (which currently always defined).
- Use OCCT_DEBUG instead of TRANSLOG.
- Entirely remove code escaped by TRANSLOG.
Related records