// C++ code Copyright (C) David R. Evans G4AMJ/NQ0I

#include <defines.h>

#include <fstream.h>

// 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 <defs_win.cc>
#endif

#if (defined(__BORLANDC__) && !defined(_Windows))
#include <defs_dos.cc>
#endif

#if (defined(__GNUC__))
#include <defs_sun.cc>
#endif

#if (defined(macintosh))
#include <defs_mac.cc>
#endif

