Skip to content

Commit 844f5b2

Browse files
committed
pool: provide macro to statically initialize git_pool
1 parent 73dab76 commit 844f5b2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/pool.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ typedef struct {
3535
uint32_t page_size; /* size of page in bytes */
3636
} git_pool;
3737

38+
#define GIT_POOL_INIT { NULL, 0, 0 }
39+
3840
#else
3941

4042
/**
@@ -57,6 +59,9 @@ typedef struct {
5759
uint32_t item_size;
5860
uint32_t page_size;
5961
} git_pool;
62+
63+
#define GIT_POOL_INIT { GIT_VECTOR_INIT, 0, 0 }
64+
6065
#endif
6166

6267
/**

0 commit comments

Comments
 (0)