diff options
author | Zahary Karadjov <zahary@gmail.com> | 2011-11-10 04:10:03 +0200 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2011-11-10 04:10:03 +0200 |
commit | 489340658ea855d01de853d3c95c928d6e1b9f86 (patch) | |
tree | e1e85d36257851daed8d907aeba89cc9453d5c08 /lib/nimbase.h | |
parent | 2bd14f4ba8863f08eadc99e6664935ab1e3fec20 (diff) | |
download | Nim-489340658ea855d01de853d3c95c928d6e1b9f86.tar.gz |
Added system.program_results for controlling the exit code of the program under normal circumstances
Implemented operators like +=, -=, etc for ordinals, floats and string Programs using the UnitTest module will now report the number of failed tests as the exit code of test runs (0 for successful run)
Diffstat (limited to 'lib/nimbase.h')
-rwxr-xr-x | lib/nimbase.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/nimbase.h b/lib/nimbase.h index cc0419f55..11278ccd2 100755 --- a/lib/nimbase.h +++ b/lib/nimbase.h @@ -331,6 +331,8 @@ typedef long long int NI64; typedef unsigned int NU32; #endif +extern NI nim_program_result; + typedef float NF32; typedef double NF64; typedef double NF; |