Adds json_pack / json_unpack variadic functions.
This commit is contained in:
committed by
Petri Lehtinen
parent
1acd1a7b56
commit
198d537be7
@@ -60,13 +60,6 @@ typedef struct {
|
||||
|
||||
/*** error reporting ***/
|
||||
|
||||
#define JSON_ERROR_MSG_LENGTH 160
|
||||
|
||||
struct json_error_t {
|
||||
char msg[JSON_ERROR_MSG_LENGTH];
|
||||
int line;
|
||||
};
|
||||
|
||||
const char *json_error_msg(const json_error_t *error)
|
||||
{
|
||||
return error ? error->msg : NULL;
|
||||
|
||||
Reference in New Issue
Block a user