GGS(GenericGEANT4Simulation)Software  2.7.0
 All Data Structures Namespaces Files Functions Variables Typedefs Macros
GGSGeoPluginMacros.h
Go to the documentation of this file.
1 /*
2  * GGSGeoPluginMacros.h
3  *
4  * Created on: 07 Aug 2013
5  * Author: Nicola Mori
6  */
7 
10 #ifndef GGSGEOPLUGINMACROS
11 #define GGSGEOPLUGINMACROS
12 
14 #define GeometryPlugin(geometryClass) \
15  extern "C" geometryClass *GeometryBuilder() { return new geometryClass(); } \
16  extern "C" void GeometryDestroyer(geometryClass *p) { delete p; }
17 
18 #endif /* GGSGEOPLUGINMACROS */