Moved the MAX_PROPERTY_SIZE define to the tiny-json.h file

This commit is contained in:
Ignacio Bortolazzi 2021-04-18 10:44:25 +02:00
parent cdaeed5c56
commit 6664de5f23
2 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,6 @@
#include <string.h>
#include <ctype.h>
#include "tiny-json.h"
#define MAX_PROPERTY_SIZE 64
/** Structure to handle a heap of JSON properties. */
typedef struct jsonStaticPool_s {

View File

@ -38,6 +38,7 @@ extern "C" {
#include <stdlib.h>
#include <stdbool.h>
#include <stdint.h>
#define MAX_PROPERTY_SIZE 64
#define json_containerOf( ptr, type, member ) \
((type*)( (char*)ptr - offsetof( type, member ) ))