OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
defs.h File Reference
#include <assert.h>
#include <climits>

Go to the source code of this file.

Namespaces

namespace  owl
 Object Windows Library (OWLNext Core)
 

Macros

#define OSL_DEFS_H
 
#define SERVICES_DEFS_H
 
#define WINSYS_DEFS_H
 
#define BI_APP_EXECUTABLE
 
#define OWL_STACKWALKER   0
 
#define OWL_DISABLE_WARNING_PUSH
 
#define OWL_DISABLE_WARNING_POP
 
#define OWL_DISABLE_WARNING_UNREFERENCED_FORMAL_PARAMETER
 
#define OWL_DISABLE_WARNING_UNREFERENCED_FUNCTION
 
#define OWL_DISABLE_WARNING_EXTENSION
 
#define OWL_DISABLE_WARNING_ZERO_AS_NULL_POINTER
 
#define OWL_DISABLE_WARNING_OLD_STYLE_CAST
 
#define OWL_BREAK   assert("OWLNext Debug Break" && false);
 
#define BI_OWL_PACKING   1
 
#define _RTTI   __rtti
 
#define TYPESAFE_DOWNCAST(object, toClass)    dynamic_cast<toClass * >(object)
 
#define STATIC_CAST(targetType, object)    static_cast<targetType >(object)
 
#define CONST_CAST(targetType, object)    const_cast<targetType >(object)
 
#define REINTERPRET_CAST(targetType, object)    reinterpret_cast<targetType >(object)
 
#define GET_CLASS_CASTABLE_ID(classtype)   typeid( classtype ).name()
 
#define GET_OBJECT_CASTABLE_ID(object)   typeid( object ).name()
 
#define BI_UNIQUE_BOOL
 
#define _OWLEXPORTDATA(p)   __declspec(dllexport) p
 
#define _OWLEXPORTFUNC(p)   __declspec(dllexport) p
 
#define _OWLEXPORTCFUNC(p)   __declspec(dllexport) p _CCONV
 
#define _OWLIMPORTDATA(p)   __declspec(dllimport) p
 
#define _OWLIMPORTFUNC(p)   __declspec(dllimport) p
 
#define _OWLIMPORTCFUNC(p)   __declspec(dllimport) p _CCONV
 
#define _OWLSTATICDATA(p)   p
 
#define _OWLSTATICFUNC(p)   p
 
#define _OWLSTATICCFUNC(p)   p _CCONV
 
#define _OWLEXPORTCLASS   __declspec(dllexport)
 
#define _OWLEXPORTCLASS_RTL   __declspec(dllexport)
 
#define _OWLIMPORTCLASS   __declspec(dllimport)
 
#define _OWLIMPORTCLASS_RTL   __declspec(dllimport)
 
#define _OWLSTATICCLASS
 
#define _OWLSTATICCLASS_RTL
 
#define _OWLCLASS
 
#define _OWLCLASS_RTL
 
#define _OWLDATA(p)   p
 
#define _OWLFUNC(p)   p
 
#define _OWLCFUNC(p)   p _CCONV
 
#define DECLARE_FUNC(rparm, ctype, fname)   rparm (ctype fname)
 
#define _USERCLASS
 
#define _CCONV   __cdecl
 
#define COUNTOF(s)   (sizeof(s) / sizeof((s)[0]))
 Array element count Important: Only use this with an argument of array type.
 

Typedefs

typedef bool owl::TBool
 

Functions

template<class T >
bool owl::ToBool (const T &t)
 
template<class T >
void Swap (T &a, T &b)
 

Macro Definition Documentation

◆ _CCONV

#define _CCONV   __cdecl

Definition at line 361 of file defs.h.

◆ _OWLCFUNC

#define _OWLCFUNC ( p)    p _CCONV

Definition at line 342 of file defs.h.

◆ _OWLCLASS

#define _OWLCLASS

Definition at line 338 of file defs.h.

◆ _OWLCLASS_RTL

#define _OWLCLASS_RTL

Definition at line 339 of file defs.h.

◆ _OWLDATA

#define _OWLDATA ( p)    p

Definition at line 340 of file defs.h.

◆ _OWLEXPORTCFUNC

#define _OWLEXPORTCFUNC ( p)    __declspec(dllexport) p _CCONV

Definition at line 303 of file defs.h.

◆ _OWLEXPORTCLASS

#define _OWLEXPORTCLASS   __declspec(dllexport)

Definition at line 311 of file defs.h.

◆ _OWLEXPORTCLASS_RTL

#define _OWLEXPORTCLASS_RTL   __declspec(dllexport)

Definition at line 312 of file defs.h.

◆ _OWLEXPORTDATA

#define _OWLEXPORTDATA ( p)    __declspec(dllexport) p

Definition at line 301 of file defs.h.

◆ _OWLEXPORTFUNC

#define _OWLEXPORTFUNC ( p)    __declspec(dllexport) p

Definition at line 302 of file defs.h.

◆ _OWLFUNC

#define _OWLFUNC ( p)    p

Definition at line 341 of file defs.h.

◆ _OWLIMPORTCFUNC

#define _OWLIMPORTCFUNC ( p)    __declspec(dllimport) p _CCONV

Definition at line 306 of file defs.h.

◆ _OWLIMPORTCLASS

#define _OWLIMPORTCLASS   __declspec(dllimport)

Definition at line 313 of file defs.h.

◆ _OWLIMPORTCLASS_RTL

#define _OWLIMPORTCLASS_RTL   __declspec(dllimport)

Definition at line 314 of file defs.h.

◆ _OWLIMPORTDATA

#define _OWLIMPORTDATA ( p)    __declspec(dllimport) p

Definition at line 304 of file defs.h.

◆ _OWLIMPORTFUNC

#define _OWLIMPORTFUNC ( p)    __declspec(dllimport) p

Definition at line 305 of file defs.h.

◆ _OWLSTATICCFUNC

#define _OWLSTATICCFUNC ( p)    p _CCONV

Definition at line 309 of file defs.h.

◆ _OWLSTATICCLASS

#define _OWLSTATICCLASS

Definition at line 315 of file defs.h.

◆ _OWLSTATICCLASS_RTL

#define _OWLSTATICCLASS_RTL

Definition at line 316 of file defs.h.

◆ _OWLSTATICDATA

#define _OWLSTATICDATA ( p)    p

Definition at line 307 of file defs.h.

◆ _OWLSTATICFUNC

#define _OWLSTATICFUNC ( p)    p

Definition at line 308 of file defs.h.

◆ _RTTI

#define _RTTI   __rtti

Definition at line 223 of file defs.h.

◆ _USERCLASS

#define _USERCLASS

Definition at line 352 of file defs.h.

◆ BI_APP_EXECUTABLE

#define BI_APP_EXECUTABLE

Definition at line 30 of file defs.h.

◆ BI_OWL_PACKING

#define BI_OWL_PACKING   1

Definition at line 192 of file defs.h.

◆ BI_UNIQUE_BOOL

#define BI_UNIQUE_BOOL

Definition at line 289 of file defs.h.

◆ CONST_CAST

#define CONST_CAST ( targetType,
object )    const_cast<targetType >(object)

Definition at line 273 of file defs.h.

◆ COUNTOF

#define COUNTOF ( s)    (sizeof(s) / sizeof((s)[0]))

Array element count Important: Only use this with an argument of array type.

Passing a pointer to the array/first element will give the wrong results. Consider using boost::size or an equivalent function instead for safety.

Definition at line 376 of file defs.h.

◆ DECLARE_FUNC

#define DECLARE_FUNC ( rparm,
ctype,
fname )   rparm (ctype fname)

Definition at line 345 of file defs.h.

◆ GET_CLASS_CASTABLE_ID

#define GET_CLASS_CASTABLE_ID ( classtype)    typeid( classtype ).name()

Definition at line 278 of file defs.h.

◆ GET_OBJECT_CASTABLE_ID

#define GET_OBJECT_CASTABLE_ID ( object)    typeid( object ).name()

Definition at line 279 of file defs.h.

◆ OSL_DEFS_H

#define OSL_DEFS_H

Definition at line 9 of file defs.h.

◆ OWL_BREAK

#define OWL_BREAK   assert("OWLNext Debug Break" && false);

Definition at line 186 of file defs.h.

◆ OWL_DISABLE_WARNING_EXTENSION

#define OWL_DISABLE_WARNING_EXTENSION

Definition at line 159 of file defs.h.

◆ OWL_DISABLE_WARNING_OLD_STYLE_CAST

#define OWL_DISABLE_WARNING_OLD_STYLE_CAST

Definition at line 161 of file defs.h.

◆ OWL_DISABLE_WARNING_POP

#define OWL_DISABLE_WARNING_POP

Definition at line 156 of file defs.h.

◆ OWL_DISABLE_WARNING_PUSH

#define OWL_DISABLE_WARNING_PUSH

Definition at line 155 of file defs.h.

◆ OWL_DISABLE_WARNING_UNREFERENCED_FORMAL_PARAMETER

#define OWL_DISABLE_WARNING_UNREFERENCED_FORMAL_PARAMETER

Definition at line 157 of file defs.h.

◆ OWL_DISABLE_WARNING_UNREFERENCED_FUNCTION

#define OWL_DISABLE_WARNING_UNREFERENCED_FUNCTION

Definition at line 158 of file defs.h.

◆ OWL_DISABLE_WARNING_ZERO_AS_NULL_POINTER

#define OWL_DISABLE_WARNING_ZERO_AS_NULL_POINTER

Definition at line 160 of file defs.h.

◆ OWL_STACKWALKER

#define OWL_STACKWALKER   0

Definition at line 111 of file defs.h.

◆ REINTERPRET_CAST

#define REINTERPRET_CAST ( targetType,
object )    reinterpret_cast<targetType >(object)

Definition at line 275 of file defs.h.

◆ SERVICES_DEFS_H

#define SERVICES_DEFS_H

Definition at line 10 of file defs.h.

◆ STATIC_CAST

#define STATIC_CAST ( targetType,
object )    static_cast<targetType >(object)

Definition at line 271 of file defs.h.

◆ TYPESAFE_DOWNCAST

#define TYPESAFE_DOWNCAST ( object,
toClass )    dynamic_cast<toClass * >(object)

Definition at line 269 of file defs.h.

◆ WINSYS_DEFS_H

#define WINSYS_DEFS_H

Definition at line 11 of file defs.h.

Function Documentation

◆ Swap()

template<class T >
void Swap ( T & a,
T & b )
inline

Definition at line 365 of file defs.h.