Salome HOME
Transfert brutal des sources du module HOMARD
[modules/smesh.git] / src / ADAPT / HOMARD.hxx
1 //  HOMARD HOMARD : implementation of HOMARD idl descriptions
2 //
3 // Copyright (C) 2011-2020  CEA/DEN, EDF R&D
4 //
5 // This library is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU Lesser General Public
7 // License as published by the Free Software Foundation; either
8 // version 2.1 of the License, or (at your option) any later version.
9 //
10 // This library is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 // Lesser General Public License for more details.
14 //
15 // You should have received a copy of the GNU Lesser General Public
16 // License along with this library; if not, write to the Free Software
17 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
18 //
19 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 //
21 //  File   : HOMARD.hxx
22 //  Author : Gerald NICOLAS, EDF
23 //  Module : HOMARD
24
25 #ifndef _HOMARD_HXX_
26 #define _HOMARD_HXX_
27
28 // C'est le ASSERT de SALOMELocalTrace/utilities.h dans KERNEL
29 #ifndef VERIFICATION
30 #define VERIFICATION(condition) \
31         if (!(condition)){INTERRUPTION("CONDITION "<<#condition<<" NOT VERIFIED")}
32 #endif /* VERIFICATION */
33
34 #ifdef WIN32
35   #if defined HOMARDIMPL_EXPORTS || defined HOMARDImpl_EXPORTS
36     #define HOMARDIMPL_EXPORT __declspec( dllexport )
37   #else
38     #define HOMARDIMPL_EXPORT __declspec( dllimport )
39   #endif
40 #else
41    #define HOMARDIMPL_EXPORT
42 #endif
43
44 // La gestion des repertoires
45 #ifndef CHDIR
46   #ifdef WIN32
47     #define CHDIR _chdir
48   #else
49     #define CHDIR chdir
50   #endif
51 #endif
52
53 #endif