Go to the documentation of this file.
12 #if (defined(_WIN32) && !defined(_WIN64))
13 #define OMW_PLAT_WIN32 (1)
17 #define OMW_PLAT_WIN64 (1)
21 #define OMW_PLAT_UNIX (1)
24 #if (defined(OMW_PLAT_WIN32) || defined(OMW_PLAT_WIN64))
25 #define OMW_PLAT_WIN (1)
36 constexpr
const char* OMWi_file_to_filename(
const char* p)
41 #if defined(OMW_PLAT_WIN)
42 if (*p++ ==
'\\') fn = p;
44 if (*p++ ==
'/') fn = p;
53 #define OMW__FILENAME__ (OMWi_file_to_filename(__FILE__))
58 #if (defined(OMW_DEFINE_SIZE_MAX) && !defined(SIZE_MAX))
59 #define SIZE_MAX ((size_t)-1)
62 #if (defined(OMW_DEFINE_SIZE_T_MAX) && !defined(SIZE_T_MAX))
63 #define SIZE_T_MAX ((size_t)-1)
66 #define OMW_SIZE_MAX ((size_t)-1)
77 #define OMWi_DISPSTR(x) (x)
80 #if ((defined(OMW_PLAT_WIN32) || defined(OMW_PLAT_WIN64) || defined(OMW_PLAT_WIN)) && defined(OMW_PLAT_UNIX))
81 #error invalid platform
83 #if (!defined(_DEBUG) && OMW_DEBUG)
84 #error invalid debug configuration