logog
logger optimized for games
|
#include "windows.h"
#include <cstdio>
#include <cstdlib>
#include <cstddef>
#include <ctime>
#include <iostream>
#include <sys/time.h>
#include <inttypes.h>
#include <wchar.h>
#include <cstring>
#include <typeinfo>
#include <hash_map>
#include <list>
#include <vector>
#include <set>
#include <cstdarg>
Go to the source code of this file.
Macros | |
#define | LOGOG_FLAVOR_WINDOWS 1 |
#define | LOGOG_FLAVOR_POSIX 1 |
#define | LOGOG_MICROSOFT_PRAGMA_IN_MACRO(x) __pragma( x ) |
#define | LOGOG_HASH std::tr1::hash |
[STLTypes] More... | |
#define | LOGOG_UNORDERED_MAP std::hash_map |
#define | LOGOG_INTERNAL_FAILURE abort(); |
#define | LOGOG_PAIR std::pair |
#define | LOGOG_LIST std::list |
#define | LOGOG_VECTOR std::vector |
#define | LOGOG_SET std::set |
#define | LOGOG_EQUAL_TO std::equal_to |
#define | LOGOG_DEFAULT_PORT 9987 |
[STLTypes] More... | |
Platform specific detection and defines, including STL overrides
#define LOGOG_DEFAULT_PORT 9987 |
[STLTypes]
The default port number that logog uses to communicate via TCP/UDP
#define LOGOG_EQUAL_TO std::equal_to |
The definition for STL "equal to" in logog. You can replace it here with your own set compatible class if needed.
#define LOGOG_FLAVOR_POSIX 1 |
Set this compilation flag to 1 to indicate that this is a Posix-like platform, e.g. Linux, PS3, etc.
#define LOGOG_FLAVOR_WINDOWS 1 |
Set this compilation flag to 1 to indicate that this is a Windows-like platform, e.g. Win32, Win64, Xbox 360, etc.
#define LOGOG_HASH std::tr1::hash |
[STLTypes]
The definition for a hash type in logog. You can replace it here with your own set compatible class if needed.
#define LOGOG_INTERNAL_FAILURE abort(); |
An internal consistency error has been detected in logog.
#define LOGOG_LIST std::list |
The definition for a list type in logog. You can replace it here with your own list compatible class if needed.
#define LOGOG_MICROSOFT_PRAGMA_IN_MACRO | ( | x | ) | __pragma( x ) |
Microsoft's CRT library has its own leak detection mechanism. If you don't trust logog's LOGOG_LEAK_DETECTION, you can enable LOGOG_LEAK_DETECTION_WINDOWS to enable Microsoft's version. This really doesn't belong in platform.hpp – feel free to refactor this into a Windows-specific header.
#define LOGOG_PAIR std::pair |
The definition for a pair type in logog. You can replace it here with your own pair compatible class if needed.
#define LOGOG_SET std::set |
The definition for a set type in logog. You can replace it here with your own set compatible class if needed.
#define LOGOG_UNORDERED_MAP std::hash_map |
The definition for an unordered map type in logog. You can replace it here with your own unordered_map compatible class if needed.
#define LOGOG_VECTOR std::vector |
The definition for a vector type in logog. You can replace it here with your own vector compatible class if needed.