Tchatator413
TripEnArvor instant messaging protocol - JSON-based
Loading...
Searching...
No Matches
json-c.h
Go to the documentation of this file.
1
5
6#ifndef JSON_C_H
7#define JSON_C_H
8
9#include <json-c/json.h>
10
11// Some error-catching mechanisms
12#ifdef __GNUC__
13#define json_object_new_int(i) __extension__({_Static_assert(sizeof (i) == sizeof (int32_t), "use json_object_new_int64"); json_object_new_int(i); })
14#define json_object_new_int64(i) __extension__({_Static_assert(sizeof (i) == sizeof (int64_t), "use json_object_new_int"); json_object_new_int64(i); })
15#endif
16
17#endif // JSON_C_H