Definition in file osdep.h.
#include <boost/format.hpp>
#include <stdint.h>
Include dependency graph for osdep.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Defines | |
| #define | EXPORT |
| #define | IMPORT |
| #define | DLLEXPORT |
| #define | DLLIMPORT |
| #define | O_BINARY 0 |
| #define | __PRETTY_FUNCTION__ __FUNCTION__ |
| #define | CHECK(Cond) |
| Debugging macro which logs an error if condition fails. | |
| #define | CHECK_MSG(Cond, Message) |
| Debugging macro which logs an error and message if condition fails. | |
| #define | CHECK_FAIL(Cond) |
| Aborts the application with message if condition fails. | |
| #define | CHECK_THROW_MSG(Cond, Message) |
| Throws std::runtime_error if condition is true This is our replacement for assert() for situations where assert() is not appropriate. | |
| #define | CHECK_THROW(Cond) |
| #define | CHECK_RET(Cond) |
| Checks condition and logs and error + returns from function if it fails. | |
| #define | CHECK_RETVAL(Cond, RetVal) |
| #define | COL_NONE |
| Ansi color codes. | |
| #define | COL_BLACK |
| #define | COL_RED |
| #define | COL_BRED |
| #define | COL_GREEN |
| #define | COL_BGREEN |
| #define | COL_YELLOW |
| #define | COL_BYELLOW |
| #define | COL_BLUE |
| #define | COL_BBLUE |
| #define | COL_MAGENTA |
| #define | COL_BMAGENTA |
| #define | COL_CYAN |
| #define | COL_BCYAN |
| #define | COL_WHITE |
| #define | COL_BWHITE |
| #define | GCC_ONLY(x) |
| Compile code only when compiling with GNU GCC. | |
| #define | MSVC_ONLY(x) |
| Compile code only when compiling with Microsoft Visual C++. | |
Enumerations | |
| enum | VersionInfo { APPVER_MAJOR = 0, APPVER_MINOR = 1, APPVER_PATCH = 0 } |
| Client version information. More... | |
|
|
|
|
|
Value: if (!(Cond)) { \ logError( \ boost::format("%1%:%2%: Check `%3%' failed.") \ % __FILE__ % __LINE__ % #Cond \ ); \ }
Definition at line 110 of file osdep.h. Referenced by clearAndNotify(), Md4Transform::getHash(), Log::getLast(), ModManager::load(), UDPSocket::recv(), Md4Transform::sumUp(), and Md4Transform::~Md4Transform(). |
|
|
|
Value: if (!(Cond)) { \ logError( \ boost::format("%1%:%2%: Check `%3%' failed: %4%") \ % __FILE__ % __LINE__ % #Cond % Message \ ); \ }
|
|
|
Value: if (!(Cond)) { \ logError( \ boost::format("%1%:%2%: Check `%3%' failed") \ % __FILE__ % __LINE__ % #Cond \ ); \ return; \ } Second version of this macro returns a specific value from the function (for usage in functions that need to return a value) Definition at line 179 of file osdep.h. Referenced by FilesList::addTempDir(), FilesList::remSharedDir(), and FilesList::remTempDir(). |
|
|
Value: if (!(Cond)) { \ logError( \ boost::format("%1%:%2%: Check `%3%' failed") \ % __FILE__ % __LINE__ % #Cond \ ); \ return (RetVal); \ } |
|
|
|
Value: if (!(Cond)) { \ throw std::runtime_error( \ (boost::format("%1%:%2%: %3%") \ % __FILE__ % __LINE__ % (Message)).str() \ ); \ }
Definition at line 159 of file osdep.h. Referenced by UDPSocket::listen(), UDPSocket::recv(), and UDPSocket::send(). |
|
|
Definition at line 235 of file osdep.h. Referenced by SharedFile::onMoveEvent(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 233 of file osdep.h. Referenced by SharedFile::onMoveEvent(). |
|
|
Definition at line 238 of file osdep.h. Referenced by SchedBase::handleEvents(). |
|
|
Definition at line 230 of file osdep.h. Referenced by SchedBase::handleEvents(), and PartData::printCompleted(). |
|
|
|
|
|
Ansi color codes. These can be used to colourize text output to terminal or socket. However, since not all platforms, shells and so on support these, they are currently disabled when NDEBUG is defined. In the future, the check's whether to enable colors or not should be done on runtime (perhaps using a commandline argument?). Definition at line 226 of file osdep.h. Referenced by SchedBase::handleEvents(), logError(), logWarning(), SharedFile::onMoveEvent(), and PartData::printCompleted(). |
|
|
Definition at line 228 of file osdep.h. Referenced by logError(). |
|
|
|
|
|
Definition at line 232 of file osdep.h. Referenced by SchedBase::handleEvents(), and logWarning(). |
|
|
|
|
|
|
|
|
|
|
|
Compile code only when compiling with GNU GCC.
|
|
|
|
|
|
Compile code only when compiling with Microsoft Visual C++.
|
|
|
Definition at line 101 of file osdep.h. Referenced by PartData::flushBuffer(), HashWork::initState(), and SharedFile::read(). |
|
|
Client version information.
|