3 #include "testing/testing.h"
13 #define STACK_CHUNK_SIZE 8
16 #define BLI_stack_new(esize, descr) BLI_stack_new_ex(esize, descr, esize *STACK_CHUNK_SIZE)
31 unsigned int in = -1, out = 1;
53 for (in = 0; in < tot; in++) {
57 for (in = tot - 1; in >= 0; in--) {
73 char in[] =
"hello world!";
78 for (i = 0; i < tot; i++) {
83 for (i = tot - 1; i >= 0; i--) {
87 EXPECT_STREQ(in, out);
100 const short in[] = {1, 10, 100, 1000};
104 for (i = 0; i < tot; i++) {
121 const int tot_rerun = 4;
132 for (rerun = 0; rerun < tot_rerun; rerun++) {
133 for (in = 0; in < tot; in++) {
141 for (in = 0; in < tot; in++) {
145 for (in = tot - 1; in >= 0; in--) {
162 const int sizes[] = {3, 11, 81, 400, 999, 12, 1, 9721, 7, 99, 5, 0};
174 for (s = sizes; *s; s++) {
175 for (i = *s; i != 0; i--) {
188 for (s = sizes; *s; s++) {
189 for (i = *s; i >= 0; i--) {
192 for (i = *s; i > 0; i--) {
205 EXPECT_EQ(memcmp(sizes, sizes_test,
sizeof(sizes) -
sizeof(
int)), 0);
213 EXPECT_EQ(memcmp(sizes, sizes_test,
sizeof(sizes) -
sizeof(
int)), 0);
A (mainly) macro array library.
EXPECT_EQ(BLI_expr_pylike_eval(expr, nullptr, 0, &result), EXPR_PYLIKE_INVALID)
void BLI_stack_pop(BLI_Stack *stack, void *dst) ATTR_NONNULL()
void * BLI_stack_peek(BLI_Stack *stack) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
void BLI_stack_pop_n(BLI_Stack *stack, void *dst, unsigned int n) ATTR_NONNULL()
size_t BLI_stack_count(const BLI_Stack *stack) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
void BLI_stack_push(BLI_Stack *stack, const void *src) ATTR_NONNULL()
bool BLI_stack_is_empty(const BLI_Stack *stack) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
void BLI_stack_clear(BLI_Stack *stack) ATTR_NONNULL()
void BLI_stack_free(BLI_Stack *stack) ATTR_NONNULL()
void BLI_stack_discard(BLI_Stack *stack) ATTR_NONNULL()
#define BLI_stack_new(esize, descr)
Group RGB to Bright Vector Camera Vector Combine Material Light Line Style Layer Add Ambient Diffuse Glossy Refraction Transparent Toon Principled Hair Volume Principled Light Particle Volume Image Sky Noise Wave Voronoi Brick Texture Vector Combine Vertex Separate Vector White RGB Map Separate Set Z Dilate Combine Combine Color Channel Split ID Combine Luminance Directional Alpha Distance Hue Movie Ellipse Bokeh View Corner Anti Mix RGB Hue Separate TEX_NODE_PROC TEX_NODE_PROC TEX_NODE_PROC TEX_NODE_PROC TEX_NODE_PROC Boolean Random String
static T sum(const btAlignedObjectArray< T > &items)