Go to the documentation of this file.
16 #if (defined(_WIN32) && !defined(_WIN64))
17 #define OMW_PLAT_WIN32 (1)
21 #define OMW_PLAT_WIN64 (1)
25 #define OMW_PLAT_UNIX (1)
28 #if (defined(OMW_PLAT_WIN32) || defined(OMW_PLAT_WIN64))
29 #define OMW_PLAT_WIN (1)
42 constexpr
const char* OMWi_file_to_filename(
const char* p)
47 #if defined(OMW_PLAT_WIN)
48 if (*p++ ==
'\\') fn = p;
50 if (*p++ ==
'/') fn = p;
59 #define OMW__FILENAME__ (OMWi_file_to_filename(__FILE__))
65 #define OMW_SIZE_MAX ((size_t)-1)
76 #define OMWi_DISPSTR(x) (x)
79 #if ((defined(OMW_PLAT_WIN32) || defined(OMW_PLAT_WIN64) || defined(OMW_PLAT_WIN)) && defined(OMW_PLAT_UNIX))
80 #error invalid platform
82 #if (!defined(_DEBUG) && OMW_DEBUG)
83 #error invalid debug configuration
86 #endif // IG_OMW_DEFS_H