source: branches/help/AISC/aisc_def.h

Last change on this file was 16763, checked in by westram, 7 years ago
File size: 1.4 KB
Line 
1//   Institute of Microbiology (Technical University Munich)     //
2//   http://www.arb-home.de/                                     //
3
4#ifndef AISC_DEF_H
5#define AISC_DEF_H
6
7#ifndef ARB_SIMPLE_ASSERT_H
8#include <arb_simple_assert.h>
9#endif
10
11#define aisc_assert(cond) arb_assert(cond)
12
13#if defined(DEBUG)
14// #define TRACE       // aisc-"debugger"
15// #define SHOW_CALLER // show where error was raised
16// #define MASK_ERRORS // useful to valgrind via makefile
17#endif
18
19#define OPENFILES 16
20#define HASHSIZE  1049
21#define STACKSIZE 20
22
23enum LookupScope {
24    LOOKUP_LIST,
25    LOOKUP_BLOCK,
26    LOOKUP_BLOCK_REST,
27    LOOKUP_LIST_OR_PARENT_LIST,
28};
29
30class Command;
31class Code;
32class hash;
33class Token;
34class Location;
35class Data;
36class Interpreter;
37
38
39#if defined(SHOW_CALLER)
40#define CALLER_FILE __FILE__
41#define CALLER_LINE __LINE__
42#else // !defined(SHOW_CALLER)
43#define CALLER_FILE NULp
44#define CALLER_LINE 0
45#endif
46
47#define print_error(code_or_loc, err)    (code_or_loc)->print_error_internal(err, CALLER_FILE, CALLER_LINE)
48#define print_warning(code_or_loc, err)  (code_or_loc)->print_warning_internal(err, CALLER_FILE, CALLER_LINE)
49
50#define printf_error(code_or_loc, format, arg)   print_error(code_or_loc, formatted(format, arg))
51#define printf_warning(code_or_loc, format, arg) print_warning(code_or_loc, formatted(format, arg))
52
53#else
54#error aisc_def.h included twice
55#endif // AISC_DEF_H
Note: See TracBrowser for help on using the repository browser.