OpenDDS  Snapshot(2023/04/28-20:55)
Namespaces | Macros
MemoryPool.cpp File Reference
#include "DCPS/DdsDcps_pch.h"
#include "MemoryPool.h"
#include "PoolAllocator.h"
#include "ace/Log_Msg.h"
#include "ace/OS_NS_stdio.h"
#include <stdexcept>
#include <limits>
#include <map>
#include <cstring>
Include dependency graph for MemoryPool.cpp:

Go to the source code of this file.

Namespaces

 OpenDDS
 The Internal API and Implementation of OpenDDS.
 
 OpenDDS::DCPS
 

Macros

#define TEST_CHECK(COND)
 

Macro Definition Documentation

◆ TEST_CHECK

#define TEST_CHECK (   COND)
Value:
if (!( COND )) { \
char msg[1024]; \
ACE_OS::snprintf(msg, 1024, "%s: FAILED at %s:%d", #COND, __FILE__, __LINE__); \
ACE_OS::printf("%s\n", msg); \
throw std::runtime_error(msg); \
return; \
}

Definition at line 22 of file MemoryPool.cpp.

Referenced by OpenDDS::DCPS::MemoryPool::joinable_prev(), and OpenDDS::DCPS::FreeIndex::node_index().