10#if !defined(OWL_DEFS_H)
16#if !defined(OWL_PRIVATE_DEFS_H)
20#if defined(BI_HAS_PRAGMA_ONCE)
28#if !defined(OWL_PRIVATE_MEMORY_H)
32#if !defined(OWL_PRIVATE_EXCEPT_H)
57{
return std::to_wstring(
v); }
61{
return p.wstring(); }
73{
return std::move(s); }
83{
return std::to_string(
v); }
96{
return std::move(s); }
125# define WM_SYSTEMERROR 0x0017
126# define WM_CTLCOLOR 0x0019
133#if !defined(GetWindowClassName)
135#define GetWindowClassName GetClassNameW
137#define GetWindowClassName GetClassNameA
141#if !defined(SendMessage)
143#define SendMessage SendMessageW
145#define SendMessage SendMessageA
149#if !defined(GetTextMetrics)
151#define GetTextMetrics GetTextMetricsW
153#define GetTextMetrics GetTextMetricsA
157#if !defined(DrawText)
159#define DrawText DrawTextW
161#define DrawText DrawTextA
170#define OWL_INI "OWL.INI"
172#if !defined(OWL_DIAGINFO)
189#if defined(OWL_STRICT_DATA) || defined(OWL_PROTECTED_DATA)
190# error OWLNext: OWL_STRICT_DATA and OWL_PROTECTED_DATA are not yet supported.
191#elif !defined(OWL_PUBLIC_DATA)
192# define OWL_PUBLIC_DATA
195#if defined(OWL_STRICT_DATA)
197# define public_data private
198# define protected_data private
200#elif defined(OWL_PROTECTED_DATA)
202# define public_data protected
203# define protected_data protected
205#elif defined(OWL_PUBLIC_DATA)
207# define public_data public
208# define protected_data protected
211# error "OWLNext: No data member access option is defined."
300{
static_cast<void>(
arg);}
316template<
class TGetText>
333 template <
class T,
class U,
bool is_
integer>
336 template <
class T,
class U>
340#if defined(__clang__)
341# pragma clang diagnostic push
342# pragma clang diagnostic ignored "-Wtautological-compare"
343#elif defined(BI_COMP_BORLANDC)
349 typedef std::numeric_limits<T>
TLimits;
354#if defined(__clang__)
355# pragma clang diagnostic pop
356#elif defined(BI_COMP_BORLANDC)
366template <
class T,
class U>
371 return TImpl::Call(
v);
379#if defined(OWL5_COMPAT)
386#if !defined(OWL_PERSISTENT_STREAMS)
387# if defined(OWL5_COMPAT) && !defined(BI_NO_OBJ_STREAMING)
388# define OWL_PERSISTENT_STREAMS 1
390# define OWL_PERSISTENT_STREAMS 0
Diagnostic macros for assertions and tracing.
Library version and build information header (template).
Reliable platform independent header for common memory and string functions.
Object Windows Library (OWLNext Core)
uint16 SwapUint16(uint16 u16)
TModule & OWLGetModule()
Returns a reference to the global OWL module object. When linking dynamically to OWLNext,...
uint32 MkUint32(uint16 lo, uint16 hi)
uint16 HiUint16(LRESULT r)
void InUse(const T &arg)
Handy utility to avoid compiler warnings about unused parameters.
tstring CopyText(int size, TGetText get_text)
Copies text from a C-string (null-terminated character array) into a string object,...
uint16 MkUint16(uint8 lo, uint8 hi)
uint32 SwapUint32(uint32 u32)
uint16 LoUint16(LRESULT r)
bool IsRepresentable(U v)
Helper function for testing for integer truncations.
void InitGlobalModule(HINSTANCE hInstance)
TModule & GetGlobalModule()
uint32 OWLGetVersion()
Get version of OWL at runtime.
auto to_tstring(const T &v) -> tstring
Definition of TSystem, a system information provider class.
Includes windowing system headers, with necessary macros defined.