From 397699dcea83b0f9e94d9062c046e8443ee685fb Mon Sep 17 00:00:00 2001 From: ageay Date: Fri, 26 Aug 2005 13:17:59 +0000 Subject: [PATCH] Modifications to avoid clients to add compulsary lines of code for trace. --- src/MEDMEM/MEDMEM_Init.cxx | 17 +++++++++++++++++ src/MEDMEM/Makefile.in | 1 + 2 files changed, 18 insertions(+) create mode 100644 src/MEDMEM/MEDMEM_Init.cxx diff --git a/src/MEDMEM/MEDMEM_Init.cxx b/src/MEDMEM/MEDMEM_Init.cxx new file mode 100644 index 000000000..1b7efb06b --- /dev/null +++ b/src/MEDMEM/MEDMEM_Init.cxx @@ -0,0 +1,17 @@ +#include "LocalTraceCollector.hxx" + +namespace MEDMEM +{ + class INIT + { + public: + INIT(); + }; +} + +MEDMEM::INIT init; + +MEDMEM::INIT::INIT() +{ + LocalTraceCollector::instance(); +} diff --git a/src/MEDMEM/Makefile.in b/src/MEDMEM/Makefile.in index 84bcc75e9..2f313739e 100644 --- a/src/MEDMEM/Makefile.in +++ b/src/MEDMEM/Makefile.in @@ -88,6 +88,7 @@ MEDMEM_MedMeshDriver22.hxx LIB=libmedmem.la LIB_SRC = \ +MEDMEM_Init.cxx \ MEDMEM_CellModel.cxx \ MEDMEM_Connectivity.cxx \ MEDMEM_Coordinate.cxx \ -- 2.39.2