From 489340658ea855d01de853d3c95c928d6e1b9f86 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Thu, 10 Nov 2011 04:10:03 +0200 Subject: 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) --- lib/nimbase.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/nimbase.h') 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; -- cgit 1.4.1-2-gfad0 23946c3e7'>this commit This repository contains the Nim compiler, Nim's stdlib, tools, and documentation. (mirror)ahoang <ahoang@tilde.institute>
summary refs log tree commit diff stats
path: root/tests/casestmt/tincompletecaseobject2.nim
blob: ccf6a3a6c2aac980dd3105fd3c4ca3e10052e96a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23