#ifdef __cplusplus extern "C" { #endif #pragma once #include "HROOT-histType.h" #include "HROOTCoreTNamed.h" #include "HROOTCoreTObject.h" #include "STDDeletable.h" #include "HROOT-coreType.h" #define THSTACK_DECL_VIRT(Type) \ #define THSTACK_DECL_NONVIRT(Type) \ Type##_p Type##_newTHStack ( const char* name, const char* title ); #define THSTACK_DECL_ACCESSOR(Type) \ #define THSTACK_DEF_VIRT(Type) \ #define THSTACK_DEF_NONVIRT(Type) \ Type##_p Type##_newTHStack ( const char* name, const char* title ) {\ Type* newp=new Type(name, title);return from_nonconst_to_nonconst(newp);\ } #define THSTACK_DEF_ACCESSOR(Type) \ TNAMED_DECL_VIRT(THStack) TOBJECT_DECL_VIRT(THStack) DELETABLE_DECL_VIRT(THStack) THSTACK_DECL_VIRT(THStack) THSTACK_DECL_NONVIRT(THStack) THSTACK_DECL_ACCESSOR(THStack) #ifdef __cplusplus } #endif