Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros
G4InteractorMessenger.cc File Reference
#include <string.h>
#include <stdlib.h>
#include "G4UIdirectory.hh"
#include "G4UIcommand.hh"
#include "G4VInteractiveSession.hh"
#include "G4InteractorMessenger.hh"
Include dependency graph for G4InteractorMessenger.cc:

Go to the source code of this file.

Macros

#define STRDUP(str)   ((str) != NULL ? (strcpy((char*)malloc((unsigned)strlen(str) + 1), str)) : (char*)NULL)
 
#define STRDEL(str)   {if((str)!=NULL) {free(str);str=NULL;}}
 

Macro Definition Documentation

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

Definition at line 38 of file G4InteractorMessenger.cc.

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

Definition at line 37 of file G4InteractorMessenger.cc.