Leonardus
Macros | Enumerations
dry.h File Reference

Don't Repeat Yourself. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define P1X   "parser"
 Pass 1 executable name.
 
#define P2X   "leon"
 Pass 2 executable name.
 

Enumerations

enum  ExitCode : int {
  EC_SUCCESS = 0 , EC_ERROR = 1 , EC_OPERATOR = 1 , EC_INTERPRETER = 2 ,
  EC_CMDLINE = 3 , EC_PANIC = 4 , EC_TESTFAIL = 5 , EC_UNUSED = 42
}
 Program exit codes. More...
 

Detailed Description

Don't Repeat Yourself.

Definitions of values shared between compiler and Bash scripts. dry.h is for C and C++.

Synchronisation has to be done manually.

Enumeration Type Documentation

◆ ExitCode

enum ExitCode : int

Program exit codes.

Used by artifacts and unit tests.

See also
Bash include file Tools/dry.inc and README.md
Enumerator
EC_SUCCESS 

Success.

EC_ERROR 

General error for Tools/ scripts.

EC_OPERATOR 

pass 2: operator error.

EC_INTERPRETER 

pass 2: parser, semantics or internal error; pass 1: parsing error; scripts: environment and setup issues.

EC_CMDLINE 

command line issues

EC_PANIC 

pass 2: panic exit due to memory restrictions.

EC_TESTFAIL 

Errors from test harnisch or found by test harnish.

EC_UNUSED 

This code represents an unused value in the unit test.