X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSALOMELocalTrace%2Futilities.h;h=05bbbf717da6186e44492c9023b42bfd334937ac;hb=4d61f5b8863253a259cde301c39b60909a6b18fa;hp=4d70e3f5264e44dcfec0a1f6c986ddbf711c6e57;hpb=718e0abe0126e5e53b3ba41fff1028efcf5bc887;p=modules%2Fkernel.git diff --git a/src/SALOMELocalTrace/utilities.h b/src/SALOMELocalTrace/utilities.h index 4d70e3f52..05bbbf717 100644 --- a/src/SALOMELocalTrace/utilities.h +++ b/src/SALOMELocalTrace/utilities.h @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2021 CEA/DEN, EDF R&D, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -26,7 +26,7 @@ // Module : SALOME // $Header$ // -/* --- Definition macros file to print informations if _DEBUG_ is defined --- */ +/* --- Definition macros file to print information if _DEBUG_ is defined --- */ #ifndef UTILITIES_H #define UTILITIES_H @@ -47,7 +47,7 @@ * This buffer is read later by a specific thread in charge of trace print. * Order of trace entries is globally respected. Nevertheless, if there are * several threads waiting for a free buffer to trace, the order of - * thread waken up is not garanteed (no fifo or priority rules in Linux Kernel) + * thread waken up is not guaranteed (no fifo or priority rules in Linux Kernel) */ #define MESS_INIT(deb) std::ostringstream os; os<insert(NORMAL_MESS, os.str().c_str()); #define MESS_ABORT std::endl; LocalTraceBufferPool::instance()->insert(ABORT_MESS, os.str().c_str()); -// Macroses for messages with separated structure in c++ file in _DUBUG mode +// Macros for messages with separated structure in c++ file in _DEBUG mode #define MESSAGE_BEGIN(msg) {std::ostringstream ss; ss <<__FILE__ <<" ["<<__LINE__<<"] : "<< msg; LocalTraceBufferPool::instance()->insert(NORMAL_MESS, ss.str().c_str());} #define MESSAGE_ADD(msg) {std::ostringstream ss; ss << msg; LocalTraceBufferPool::instance()->insert(NORMAL_MESS, ss.str().c_str());} #define MESSAGE_END(msg) {std::ostringstream ss; ss << msg << std::endl; LocalTraceBufferPool::instance()->insert(NORMAL_MESS, ss.str().c_str());} @@ -63,6 +63,7 @@ // --- Some macros are always defined (without _DEBUG_): for use with release version #define INFOS(msg) {MESS_BEGIN("- Trace ") << msg << MESS_END} +#define BRIEF_INFOS(msg) {std::ostringstream os; os<< msg << std::endl; LocalTraceBufferPool::instance()->insert(BRIEF_MESS, os.str().c_str());} #define PYSCRIPT(msg) {MESS_INIT("---PYSCRIPT--- ") << msg << MESS_END} #define INTERRUPTION(msg) {MESS_BEGIN("- INTERRUPTION: ")<< msg << MESS_ABORT} @@ -90,6 +91,8 @@ #define COMPILER "pgCC" #elif defined ( __alpha ) #define COMPILER "cxx" +#elif defined ( _MSC_VER ) +#define COMPILER "cl.exe" #else #define COMPILER "undefined" #endif