map halt(t) to exit(t) rather than assert(0). all test cases except gravity pass with pas2c now
authorsheepluva
Sat, 29 Nov 2014 05:24:47 +0100
changeset 10566 cc90ea6448c7
parent 10564 0cb20aa8877a
child 10568 5a867053add8
map halt(t) to exit(t) rather than assert(0). all test cases except gravity pass with pas2c now
project_files/hwc/rtl/system.h
--- a/project_files/hwc/rtl/system.h	Sat Nov 29 05:15:27 2014 +0100
+++ b/project_files/hwc/rtl/system.h	Sat Nov 29 05:24:47 2014 +0100
@@ -1,6 +1,7 @@
 #ifndef SYSTEM_H_
 #define SYSTEM_H_
 
+#include <stdlib.h>
 #include <time.h>
 #include "Types.h"
 #include "misc.h"
@@ -134,7 +135,8 @@
 
 int         fpcrtl_UTF8ToUnicode(PWideChar dest, PChar src, SizeInt maxLen);
 
-#define     fpcrtl_halt(t)                                  assert(0)
+// #define     fpcrtl_halt(t)                                  assert(0)
+#define     fpcrtl_halt(t)                                  exit(t)
 
 #define     fpcrtl_Load_GL_VERSION_2_0()                    1