From 06ea05dd6737269e8fb0db9fc796709adfd67c95 Mon Sep 17 00:00:00 2001 From: smh Date: Tue, 27 Jan 2004 09:22:04 +0000 Subject: [PATCH] MPV: Merge V1.2c --- src/Utils/utilities.h | 109 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 src/Utils/utilities.h diff --git a/src/Utils/utilities.h b/src/Utils/utilities.h new file mode 100644 index 000000000..015e84e58 --- /dev/null +++ b/src/Utils/utilities.h @@ -0,0 +1,109 @@ +// SALOME Utils : general SALOME's definitions and tools +// +// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org +// +// +// +// File : utilities.h +// Author : Antoine YESSAYAN, Paul RASCLE, EDF +// Module : SALOME +// $Header$ + +/* --- Definition macros file to print informations if _DEBUG_ is defined --- */ + +#ifndef UTILITIES_H +#define UTILITIES_H + +#include +#include +#include "SALOME_Log.hxx" + +/* --- INFOS is always defined (without _DEBUG_): to be used for warnings, with release version --- */ + +#define INFOS(msg) {SLog.putMessage(SLog<<__FILE__<<" ["<<__LINE__<<"] : "<