blob: 7e7d0b232428719811163bf66a91e5d78e003f0b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#pragma once
#include "pb-mem.h"
// use pb_* functions
#define MPACK_STDLIB 0
// pb_* memory management functions
#define MPACK_FREE pb_free
#define MPACK_MALLOC pb_malloc
#define MPACK_REALLOC pb_realloc
// more reasonable buffer size (all messages are small)
#define MPACK_BUFFER_SIZE 80
#define MPACK_STACK_SIZE 80
#define MPACK_PAGE_SIZE 80
// // disable unused features (causes errors?)
// #define MPACK_NODE 0
// #define MPACK_BUILDER 0
|