project_files/hwc/rtl/system.h
changeset 10566 cc90ea6448c7
parent 10131 4b4a043111f4
child 10838 2abe883c9c21
equal deleted inserted replaced
10564:0cb20aa8877a 10566:cc90ea6448c7
     1 #ifndef SYSTEM_H_
     1 #ifndef SYSTEM_H_
     2 #define SYSTEM_H_
     2 #define SYSTEM_H_
     3 
     3 
       
     4 #include <stdlib.h>
     4 #include <time.h>
     5 #include <time.h>
     5 #include "Types.h"
     6 #include "Types.h"
     6 #include "misc.h"
     7 #include "misc.h"
     7 
     8 
     8 extern double pi;
     9 extern double pi;
   132 string255   fpcrtl_paramStr(int i);
   133 string255   fpcrtl_paramStr(int i);
   133 #define     fpcrtl_ParamStr                                 fpcrtl_paramStr
   134 #define     fpcrtl_ParamStr                                 fpcrtl_paramStr
   134 
   135 
   135 int         fpcrtl_UTF8ToUnicode(PWideChar dest, PChar src, SizeInt maxLen);
   136 int         fpcrtl_UTF8ToUnicode(PWideChar dest, PChar src, SizeInt maxLen);
   136 
   137 
   137 #define     fpcrtl_halt(t)                                  assert(0)
   138 // #define     fpcrtl_halt(t)                                  assert(0)
       
   139 #define     fpcrtl_halt(t)                                  exit(t)
   138 
   140 
   139 #define     fpcrtl_Load_GL_VERSION_2_0()                    1
   141 #define     fpcrtl_Load_GL_VERSION_2_0()                    1
   140 
   142 
   141 uint32_t    __attribute__((overloadable))                   fpcrtl_lo(uint64_t);
   143 uint32_t    __attribute__((overloadable))                   fpcrtl_lo(uint64_t);
   142 #define     fpcrtl_Lo                                       fpcrtl_lo
   144 #define     fpcrtl_Lo                                       fpcrtl_lo