mirror of
https://github.com/boostorg/interprocess.git
synced 2026-01-19 04:12:13 +00:00
Make sure assert's are executed also in release mode when examples are tested in release mode.
This commit is contained in:
@@ -7,7 +7,9 @@
|
||||
// See http://www.boost.org/libs/interprocess for documentation.
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifdef NDEBUG
|
||||
#undef NDEBUG
|
||||
#endif
|
||||
#include <boost/interprocess/detail/workaround.hpp>
|
||||
//[doc_adaptive_pool
|
||||
#include <boost/interprocess/managed_shared_memory.hpp>
|
||||
|
||||
@@ -7,7 +7,9 @@
|
||||
// See http://www.boost.org/libs/interprocess for documentation.
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifdef NDEBUG
|
||||
#undef NDEBUG
|
||||
#endif
|
||||
#include <boost/interprocess/detail/workaround.hpp>
|
||||
//[doc_allocator
|
||||
#include <boost/interprocess/managed_shared_memory.hpp>
|
||||
|
||||
@@ -7,7 +7,9 @@
|
||||
// See http://www.boost.org/libs/interprocess for documentation.
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifdef NDEBUG
|
||||
#undef NDEBUG
|
||||
#endif
|
||||
#include <boost/interprocess/detail/workaround.hpp>
|
||||
//[doc_bufferstream
|
||||
#include <boost/interprocess/managed_shared_memory.hpp>
|
||||
|
||||
@@ -7,7 +7,9 @@
|
||||
// See http://www.boost.org/libs/interprocess for documentation.
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifdef NDEBUG
|
||||
#undef NDEBUG
|
||||
#endif
|
||||
#include <boost/interprocess/detail/workaround.hpp>
|
||||
//[doc_cached_adaptive_pool
|
||||
#include <boost/interprocess/managed_shared_memory.hpp>
|
||||
|
||||
@@ -7,7 +7,9 @@
|
||||
// See http://www.boost.org/libs/interprocess for documentation.
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifdef NDEBUG
|
||||
#undef NDEBUG
|
||||
#endif
|
||||
#include <boost/interprocess/detail/workaround.hpp>
|
||||
//[doc_cached_node_allocator
|
||||
#include <boost/interprocess/managed_shared_memory.hpp>
|
||||
|
||||
@@ -7,6 +7,10 @@
|
||||
// See http://www.boost.org/libs/interprocess for documentation.
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifdef NDEBUG
|
||||
#undef NDEBUG
|
||||
#endif
|
||||
//[doc_managed_aligned_allocation
|
||||
#include <boost/interprocess/managed_shared_memory.hpp>
|
||||
#include <cassert>
|
||||
|
||||
@@ -8,6 +8,9 @@
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifdef NDEBUG
|
||||
#undef NDEBUG
|
||||
#endif
|
||||
//[doc_managed_allocation_command
|
||||
#include <boost/interprocess/managed_shared_memory.hpp>
|
||||
#include <cassert>
|
||||
|
||||
@@ -7,7 +7,9 @@
|
||||
// See http://www.boost.org/libs/interprocess for documentation.
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifdef NDEBUG
|
||||
#undef NDEBUG
|
||||
#endif
|
||||
//[doc_managed_construction_info
|
||||
#include <boost/interprocess/managed_shared_memory.hpp>
|
||||
#include <cassert>
|
||||
|
||||
@@ -7,7 +7,9 @@
|
||||
// See http://www.boost.org/libs/interprocess for documentation.
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifdef NDEBUG
|
||||
#undef NDEBUG
|
||||
#endif
|
||||
//[doc_managed_grow
|
||||
#include <boost/interprocess/managed_shared_memory.hpp>
|
||||
#include <boost/interprocess/managed_mapped_file.hpp>
|
||||
|
||||
@@ -7,13 +7,16 @@
|
||||
// See http://www.boost.org/libs/interprocess for documentation.
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifdef NDEBUG
|
||||
#undef NDEBUG
|
||||
#endif
|
||||
#include <boost/interprocess/detail/workaround.hpp>
|
||||
//[doc_managed_heap_memory
|
||||
#include <boost/container/list.hpp>
|
||||
#include <boost/interprocess/managed_heap_memory.hpp>
|
||||
#include <boost/interprocess/allocators/allocator.hpp>
|
||||
#include <cstddef>
|
||||
#include <cassert>
|
||||
|
||||
using namespace boost::interprocess;
|
||||
typedef boost::container::list<int, allocator<int, managed_heap_memory::segment_manager> >
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
//[doc_managed_multiple_allocation
|
||||
#include <boost/interprocess/managed_shared_memory.hpp>
|
||||
#include <boost/move/utility_core.hpp> //boost::move
|
||||
#include <cassert>//assert
|
||||
#include <cstring>//std::memset
|
||||
#include <new> //std::nothrow
|
||||
#include <vector> //std::vector
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
#include <boost/interprocess/managed_shared_memory.hpp>
|
||||
#include <cstdlib> //std::system
|
||||
#include <cstddef>
|
||||
#include <cassert>
|
||||
#include <utility>
|
||||
//<-
|
||||
#include "../test/get_process_id_name.hpp"
|
||||
|
||||
@@ -7,7 +7,9 @@
|
||||
// See http://www.boost.org/libs/interprocess for documentation.
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifdef NDEBUG
|
||||
#undef NDEBUG
|
||||
#endif
|
||||
#include <boost/interprocess/detail/workaround.hpp>
|
||||
//[doc_node_allocator
|
||||
#include <boost/interprocess/managed_shared_memory.hpp>
|
||||
|
||||
@@ -7,7 +7,9 @@
|
||||
// See http://www.boost.org/libs/interprocess for documentation.
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifdef NDEBUG
|
||||
#undef NDEBUG
|
||||
#endif
|
||||
#include <boost/interprocess/detail/workaround.hpp>
|
||||
//[doc_private_adaptive_pool
|
||||
#include <boost/interprocess/managed_shared_memory.hpp>
|
||||
|
||||
@@ -7,7 +7,9 @@
|
||||
// See http://www.boost.org/libs/interprocess for documentation.
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifdef NDEBUG
|
||||
#undef NDEBUG
|
||||
#endif
|
||||
#include <boost/interprocess/detail/workaround.hpp>
|
||||
//[doc_private_node_allocator
|
||||
#include <boost/interprocess/managed_shared_memory.hpp>
|
||||
|
||||
@@ -8,7 +8,9 @@
|
||||
// See http://www.boost.org/libs/interprocess for documentation.
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifdef NDEBUG
|
||||
#undef NDEBUG
|
||||
#endif
|
||||
#include <boost/interprocess/detail/workaround.hpp>
|
||||
|
||||
//[doc_shared_ptr
|
||||
|
||||
@@ -8,7 +8,9 @@
|
||||
// See http://www.boost.org/libs/interprocess for documentation.
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifdef NDEBUG
|
||||
#undef NDEBUG
|
||||
#endif
|
||||
#include <boost/interprocess/detail/workaround.hpp>
|
||||
|
||||
//[doc_shared_ptr_explicit
|
||||
|
||||
@@ -8,7 +8,9 @@
|
||||
// See http://www.boost.org/libs/interprocess for documentation.
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifdef NDEBUG
|
||||
#undef NDEBUG
|
||||
#endif
|
||||
#include <boost/interprocess/detail/workaround.hpp>
|
||||
|
||||
//[doc_unique_ptr
|
||||
|
||||
@@ -7,7 +7,9 @@
|
||||
// See http://www.boost.org/libs/interprocess for documentation.
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifdef NDEBUG
|
||||
#undef NDEBUG
|
||||
#endif
|
||||
#include <boost/interprocess/detail/workaround.hpp>
|
||||
//[doc_vectorstream
|
||||
#include <boost/container/vector.hpp>
|
||||
|
||||
Reference in New Issue
Block a user