|
Last change
on this file was
10148,
checked in by westram, 12 years ago
|
- makedepend changed behavior between 1.0.2 and 1.0.4
- 1.0.4 does generate impossible dependencies (see [10143] for an example)
- force correct behavior by defining SIMPLE_ARB_ASSERT on CLI (when invoking compiler and makedepend)
|
|
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 1024 |
|---|
| 21 | #define STACKSIZE 20 |
|---|
| 22 | |
|---|
| 23 | enum LookupScope { |
|---|
| 24 | LOOKUP_LIST, |
|---|
| 25 | LOOKUP_BLOCK, |
|---|
| 26 | LOOKUP_BLOCK_REST, |
|---|
| 27 | LOOKUP_LIST_OR_PARENT_LIST, |
|---|
| 28 | }; |
|---|
| 29 | |
|---|
| 30 | class Command; |
|---|
| 31 | class Code; |
|---|
| 32 | class hash; |
|---|
| 33 | class Token; |
|---|
| 34 | class Location; |
|---|
| 35 | class Data; |
|---|
| 36 | class 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 NULL |
|---|
| 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.