19 #include "Athena/Types.hpp"
20 #include "Athena/Utility.hpp"
24 #pragma warning(disable : 4996)
27 #ifndef AT_PRETTY_FUNCTION
28 # if defined(__PRETTY_FUNCTION__) || defined(__GNUC__)
29 # define AT_PRETTY_FUNCTION __PRETTY_FUNCTION__
30 # elif defined(__FUNCSIG__)
31 # define AT_PRETTY_FUNCTION __FUNCSIG__
32 # elif defined(__FUNCTION__)
33 # define AT_PRETTY_FUNCTION __FUNCTION__
34 # elif defined(__FUNC__)
35 # define AT_PRETTY_FUNCTION __FUNC__
36 # elif defined(__func__)
37 # define AT_PRETTY_FUNCTION __func__
39 # define AT_PRETTY_FUNCTION "<unknown>"
45 #include "gekko_support.h"
46 typedef struct stat stat64_t;
49 typedef struct stat64 stat64_t;
54 std::cout << __FILE__ << "(" << __LINE__ << ") " << AT_PRETTY_FUNCTION << ": "
58 std::cerr << __FILE__ << "(" << __LINE__ << ") " << AT_PRETTY_FUNCTION << ": "
62 #define aPrint() std::cout
71 #define ROUND_UP_32(val) (((val) + 31) & ~31)
72 #define ROUND_UP_16(val) (((val) + 15) & ~15)
89 #ifndef ATHENA_NO_SAKURA
116 #endif // ATHENA_NO_SAKURA
119 typedef void (*atEXCEPTION_HANDLER)(
const std::string& file,
const std::string&
function,
int line,
const std::string&, ...);
121 atEXCEPTION_HANDLER atGetExceptionHandler();
122 void atSetExceptionHandler(atEXCEPTION_HANDLER func);
124 std::ostream& operator<<(std::ostream& os,
const Athena::SeekOrigin& origin);
125 std::ostream& operator<<(std::ostream& os,
const Athena::Endian& endian);