// C++ code Copyright (C) David R. Evans G4AMJ/NQ0I #include #include // This should work on all systems void _HC(void* vp, const char* file, const int line) { if (!vp) then _FE("Out of memory", file, line); } // The place to put trace output static ofstream trace_log("TRACE.LOG"); // a generic logging facility void _TRACELOG(const char* msg, const char* file, const int line); // handler for information that the user might want to know void information(const char* cp) { cout << cp << endl; } // now the stuff that depends on particular machines and compilers #if (defined(__BORLANDC__) && defined(_Windows)) #include #endif #if (defined(__BORLANDC__) && !defined(_Windows)) #include #endif #if (defined(__GNUC__)) #include #endif #if (defined(macintosh)) #include #endif