Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
test_irrptr.cpp File Reference
#include "test.h"
#include "exceptions.h"
#include "irr_ptr.h"
#include "IReferenceCounted.h"
+ Include dependency graph for test_irrptr.cpp:

Classes

class  TestIrrPtr
 

Macros

#define UASSERT_REFERENCE_COUNT(object, value, info)
 

Variables

static TestIrrPtr g_test_instance
 

Macro Definition Documentation

◆ UASSERT_REFERENCE_COUNT

#define UASSERT_REFERENCE_COUNT ( object,
value,
info )
Value:
UTEST((object)->getReferenceCount() == value, \
info "Reference count is %d instead of " #value, \
(object)->getReferenceCount())
#define UTEST(x, fmt,...)
Definition test.h:41

Referenced by TestIrrPtr::testRefCounting(), and TestIrrPtr::testSelfAssignment().

Variable Documentation

◆ g_test_instance

TestIrrPtr g_test_instance
static