Grassroots Infrastructure
The Grassroots Infrastructure is a suite of computing tools to help users and developers use scientific data infrastructure that can easily be interconnected.
amiga_debugging.h
Go to the documentation of this file.
1 /*
2 ** Copyright 2014-2016 The Earlham Institute
3 **
4 ** Licensed under the Apache License, Version 2.0 (the "License");
5 ** you may not use this file except in compliance with the License.
6 ** You may obtain a copy of the License at
7 **
8 ** http://www.apache.org/licenses/LICENSE-2.0
9 **
10 ** Unless required by applicable law or agreed to in writing, software
11 ** distributed under the License is distributed on an "AS IS" BASIS,
12 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 ** See the License for the specific language governing permissions and
14 ** limitations under the License.
15 */
16 
21 #ifdef __cplusplus
22  extern "C" {
23 #endif
24 
25 #ifndef DEBUGGING_UTILS_H
26 #define DEBUGGING_UTILS_H
27 
28 
29 #include <clib/debug_protos.h>
30 
31 #ifndef DOXYGEN_SHOULD_SKIP_THIS
32 
33 #ifdef __amigaos4__
34  #include <proto/exec.h>
35  #define KPRINTF IExec->DebugPrintF
36 //#define KPRINTF(format, args...)((struct ExecIFace *) ((*(struct ExecBase **)4)->MainInterface))->DebugPrintF(format, ## args)
37 #else
38  #define KPRINTF KPrintF
39 #endif
40 
41 #ifdef DEBUG
42  #define DB(X) (X)
43 #else
44  #define DB(X)
45 #endif
46 
47 #endif /* #ifndef DOXYGEN_SHOULD_SKIP_THIS */
48 
49 #endif /* #ifndef DEBUGGING_UTILS_H */
50 
51 #ifdef __cplusplus
52 }
53 #endif
54