ReactOS 0.4.15-dev-7953-g1f49173
nc_alloc.h File Reference
#include "Prefix.h"
#include <utility>
Include dependency graph for nc_alloc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  TestController
 

Macros

#define INCLUDED_MOTU_nc_alloc   1
 

Functions

void simulate_possible_failure ()
 
void simulate_constructor ()
 
void simulate_destructor ()
 

Variables

long alloc_count
 
long object_count
 
TestController gTestController
 

Macro Definition Documentation

◆ INCLUDED_MOTU_nc_alloc

#define INCLUDED_MOTU_nc_alloc   1

Definition at line 21 of file nc_alloc.h.

Function Documentation

◆ simulate_constructor()

void simulate_constructor ( )
inline

Definition at line 121 of file nc_alloc.h.

121 {
123 ++object_count;
124}
TestController gTestController
Definition: nc_alloc.cpp:46
long object_count
Definition: nc_alloc.cpp:37
static void maybe_fail(long)
Definition: nc_alloc.cpp:49

Referenced by TestClass::Init().

◆ simulate_destructor()

void simulate_destructor ( )
inline

Definition at line 126 of file nc_alloc.h.

126 {
127 --object_count;
128}

Referenced by TestClass::~TestClass().

◆ simulate_possible_failure()

Variable Documentation

◆ alloc_count

long alloc_count
extern

◆ gTestController

TestController gTestController
extern

Definition at line 46 of file nc_alloc.cpp.

Referenced by assert_sorted_version(), ConstCheck(), main(), operator delete(), test_insert_one< C >::operator()(), test_insert_n< C >::operator()(), test_insert_value< C >::operator()(), test_insert_noresize< C >::operator()(), test_insert_range< C, Iter >::operator()(), test_push_back< C >::operator()(), test_copy_construct< T >::operator()(), test_construct_pointer_range< T >::operator()(), test_construct_iter_range< T >::operator()(), test_construct_iter_range_n< T >::operator()(), test_stable_partition::operator()(), test_assign_op< T >::operator()(), test_list_sort::operator()(), OperatorNew(), simulate_constructor(), simulate_possible_failure(), StrongCheck(), test_assign_op< T >::test_assign_op(), test_BitVector_reserve::test_BitVector_reserve(), test_construct_iter_range< T >::test_construct_iter_range(), test_construct_iter_range_n< T >::test_construct_iter_range_n(), test_construct_n< T >::test_construct_n(), test_construct_n_instance< T >::test_construct_n_instance(), test_construct_pointer_range< T >::test_construct_pointer_range(), test_copy_construct< T >::test_copy_construct(), test_default_construct< T >::test_default_construct(), test_hash_resize< T >::test_hash_resize(), test_inplace_merge_1::test_inplace_merge_1(), test_inplace_merge_2::test_inplace_merge_2(), test_insert_n< C >::test_insert_n(), test_insert_noresize< C >::test_insert_noresize(), test_insert_one< C >::test_insert_one(), test_insert_range< C, Iter >::test_insert_range(), test_insert_value< C >::test_insert_value(), test_list_sort::test_list_sort(), test_push_back< C >::test_push_back(), test_push_front< C >::test_push_front(), test_reserve::test_reserve(), test_slist_sort::test_slist_sort(), test_stable_partition::test_stable_partition(), test_stable_sort_1::test_stable_sort_1(), test_stable_sort_2::test_stable_sort_2(), test_uninitialized_copy::test_uninitialized_copy(), test_uninitialized_fill::test_uninitialized_fill(), test_uninitialized_fill_n::test_uninitialized_fill_n(), and WeakCheck().

◆ object_count