X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fmain.cpp;h=d65dc6018945cfb0157723c33f158772da04650c;hp=dc20d75e1103a96c50d8229e3ebf70bc83d8a2f7;hb=888817a67a9d840be66b52811b01eb77f10ff3e6;hpb=e7066887c0d142ddef87ec9ae07ef08ff31573dc diff --git a/src/main.cpp b/src/main.cpp index dc20d75..d65dc60 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -11,6 +11,10 @@ int main(int argc, char ** argv) { + #if REALTYPE == REAL_IRRAM + iRRAM_initialize(argc,argv); + #endif + #ifndef __STDC_IEC_559__ Warn("__STDC_IEC_559__ not defined. IEEE 754 floating point not fully supported.\n"); #endif @@ -18,7 +22,7 @@ int main(int argc, char ** argv) // We want to crash if we ever get a NaN. feenableexcept(FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW); - Debug("Compiled with REAL = %d => \"%s\" sizeof(Real) == %d bytes", REAL, g_real_name[REAL], sizeof(Real)); + Debug("Compiled with REAL = %d => \"%s\" sizeof(Real) == %d bytes", REALTYPE, g_real_name[REALTYPE], sizeof(Real)); Document doc("","fonts/ComicSans.ttf"); srand(time(NULL));