Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4InteractorMessenger.cc File Reference
#include "G4InteractorMessenger.hh"
#include "G4UIcommand.hh"
#include "G4UIdirectory.hh"
#include "G4VInteractiveSession.hh"
#include <cstdlib>
#include <cstring>

Go to the source code of this file.

Macros

#define STRDUP(str)
 
#define STRDEL(str)
 

Macro Definition Documentation

◆ STRDEL

#define STRDEL ( str)
Value:
{ \
if ((str) != NULL) { \
free(str); \
str = NULL; \
} \
}

Definition at line 39 of file G4InteractorMessenger.cc.

39#define STRDEL(str) \
40 { \
41 if ((str) != NULL) { \
42 free(str); \
43 str = NULL; \
44 } \
45 }

Referenced by SbPainterPS::closeStream(), SbPainterPS::openFileForWriting(), and SbPainterPS::setFileName().

◆ STRDUP

#define STRDUP ( str)
Value:
((str) != NULL ? (strcpy((char*)malloc((unsigned)strlen(str) + 1), str)) : (char*)NULL)

Definition at line 37 of file G4InteractorMessenger.cc.

37#define STRDUP(str) \
38 ((str) != NULL ? (strcpy((char*)malloc((unsigned)strlen(str) + 1), str)) : (char*)NULL)

Referenced by SbPainterPS::openFileForWriting(), and SbPainterPS::setFileName().