OpenCMISS-Iron Internal API Documentation
Main Page
Related Pages
Modules
Modules
Data Types List
Files
File List
File Members
macros.h
Go to the documentation of this file.
1
/* \file
2
* \brief This file contains all pre-processing macros.
3
*
4
* \section LICENSE
5
*
6
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
7
*
8
* The contents of this file are subject to the Mozilla Public License
9
* Version 1.1 (the "License"); you may not use this file except in
10
* compliance with the License. You may obtain a copy of the License at
11
* http://www.mozilla.org/MPL/
12
*
13
* Software distributed under the License is distributed on an "AS IS"
14
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
15
* License for the specific language governing rights and limitations
16
* under the License.
17
*
18
* The Original Code is OpenCMISS
19
*
20
* The Initial Developer of the Original Code is University of Auckland,
21
* Auckland, New Zealand, the University of Oxford, Oxford, United
22
* Kingdom and King's College, London, United Kingdom. Portions created
23
* by the University of Auckland, the University of Oxford and King's
24
* College, London are Copyright (C) 2007-2010 by the University of
25
* Auckland, the University of Oxford and King's College, London.
26
* All Rights Reserved.
27
*
28
* Contributor(s): Chris Bradley
29
*
30
* Alternatively, the contents of this file may be used under the terms of
31
* either the GNU General Public License Version 2 or later (the "GPL"), or
32
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
33
* in which case the provisions of the GPL or the LGPL are applicable instead
34
* of those above. If you wish to allow use of your version of this file only
35
* under the terms of either the GPL or the LGPL, and not to allow others to
36
* use your version of this file under the terms of the MPL, indicate your
37
* decision by deleting the provisions above and replace them with the notice
38
* and other provisions required by the GPL or the LGPL. If you do not delete
39
* the provisions above, a recipient may use your version of this file under
40
* the terms of any one of the MPL, the GPL or the LGPL.
41
*
42
*/
43
44
#ifdef WITH_DIAGNOSTICS
45
# define ENTERS(routinename,err,error,linenum) \
46
CALL Enters(routinename,err,error,linenum)
47
# define EXITS(routinename) \
48
CALL Exits(routinename)
49
# define ERRORS(routinename,err,error) \
50
CALL Errors(routinename,err,error)
51
# define ERRORSEXITS(routinename,err,error) \
52
CALL Errors(routinename,err,error); CALL Exits(routinename)
53
#else
54
# define ENTERS(routinename,err,error,linenum) !Do nothing
55
# define EXITS(routinename) !Do nothing
56
# define ERRORS(routinename,err,error) \
57
CALL Errors(routinename,err,error)
58
# define ERRORSEXITS(routinename,err,error) \
59
CALL Errors(routinename,err,error)
60
#endif
src
macros.h
Generated on Mon Apr 9 2018 20:02:19 for OpenCMISS-Iron Internal API Documentation by
1.8.11