![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <limits.h>
#include <stdio.h>
#include <assert.h>
Go to the source code of this file.
Macros | |
#define | USE_CRT 1 |
#define | USE_FLOAT |
#define | USE_INT64 |
has INT64(int64 (_MSC_VER) or int64_t (C99/__GNUC standard)) as a base/native type. may not be true 64 bit code. USE_64BIT More... | |
#define | UNREFERENCED_PARAMETER(P) ((void)(P)) |
< _WIN32 type thing. get rid of stupid warning. More... | |
#define | UNREACHABLE_CODE(x) ASSERT(0); x |
#define | UNREFERENCED_REFERENCE(x) ((void)(&x)) |
#define | DECLSPEC_NOVTABLE |
#define | interface struct DECLSPEC_NOVTABLE |
#define | DECLARE_INTERFACE(iface) interface iface |
#define | DECLARE_INTERFACE_(iface, baseiface) interface iface : public baseiface |
#define | _MAX_PATH 260 |
#define | VOLATILE volatile |
#define | _UINTPTR_T_DEFINED |
#define | MAX(a, b) (((a) > (b)) ? (a) : (b)) |
#define | MIN(a, b) (((a) < (b)) ? (a) : (b)) |
#define | ABS(n) (((n) < 0) ? (-(n)) : (n)) |
#define | _HRESULT_DEFINED |
Typedefs | |
typedef INT64 | INTMAX_t |
typedef UINT64 | UINTMAX_t |
typedef UINT32 | uintptr_t |
typedef INT32 | HRESULT |
_WIN32 style error codes. INT32 More... | |
Supply all common system base types that are usually available. System include files should be stable and not give any warnings. (but this is not true of course) Pull in System definitions from system header files. Stuff that can and should be put into a precompiled header for most all programs.
#define _HRESULT_DEFINED |
#define _MAX_PATH 260 |
#define _UINTPTR_T_DEFINED |
#define ABS | ( | n | ) | (((n) < 0) ? (-(n)) : (n)) |
#define DECLARE_INTERFACE | ( | iface | ) | interface iface |
#define DECLARE_INTERFACE_ | ( | iface, | |
baseiface | |||
) | interface iface : public baseiface |
#define DECLSPEC_NOVTABLE |
#define interface struct DECLSPEC_NOVTABLE |
#define MAX | ( | a, | |
b | |||
) | (((a) > (b)) ? (a) : (b)) |
#define MIN | ( | a, | |
b | |||
) | (((a) < (b)) ? (a) : (b)) |
#define UNREACHABLE_CODE | ( | x | ) | ASSERT(0); x |
#define UNREFERENCED_REFERENCE | ( | x | ) | ((void)(&x)) |
#define USE_CRT 1 |
Always compiled for __cplusplus try to compile in several different environments:
#define USE_FLOAT |
< use 64 bit native code/pointers. linux or _WIN32&_WIN64. NOT _M_IX86
#define USE_INT64 |
has INT64(int64 (_MSC_VER) or int64_t (C99/__GNUC standard)) as a base/native type. may not be true 64 bit code. USE_64BIT
#define VOLATILE volatile |
typedef INT32 HRESULT |
_WIN32 style error codes. INT32
typedef INT64 INTMAX_t |
typedef UINT64 UINTMAX_t |
typedef UINT32 uintptr_t |