Blender  V3.3
Macros | Functions
guardedalloc_alignment_test.cc File Reference
#include "testing/testing.h"
#include "BLI_utildefines.h"
#include "MEM_guardedalloc.h"
#include "guardedalloc_test_base.h"

Go to the source code of this file.

Macros

#define CHECK_ALIGNMENT(ptr, align)   EXPECT_EQ((size_t)ptr % align, 0)
 

Functions

 TEST_F (LockFreeAllocatorTest, MEM_mallocN_aligned)
 
 TEST_F (GuardedAllocatorTest, MEM_mallocN_aligned)
 

Macro Definition Documentation

◆ CHECK_ALIGNMENT

#define CHECK_ALIGNMENT (   ptr,
  align 
)    EXPECT_EQ((size_t)ptr % align, 0)

Definition at line 10 of file guardedalloc_alignment_test.cc.

Function Documentation

◆ TEST_F() [1/2]

Definition at line 48 of file guardedalloc_alignment_test.cc.

◆ TEST_F() [2/2]

Definition at line 36 of file guardedalloc_alignment_test.cc.