|
|
@ -57,6 +57,12 @@ extern "C" |
|
|
|
{ |
|
|
|
#endif |
|
|
|
|
|
|
|
#ifndef _BITS256 |
|
|
|
#define _BITS256 |
|
|
|
union _bits256 { uint8_t bytes[32]; uint16_t ushorts[16]; uint32_t uints[8]; uint64_t ulongs[4]; uint64_t txid; }; |
|
|
|
typedef union _bits256 bits256; |
|
|
|
#endif |
|
|
|
|
|
|
|
/* Macros for creating things quickly. */ |
|
|
|
#define cJSON_AddNullToObject(object,name) cJSON_AddItemToObject(object, name, cJSON_CreateNull()) |
|
|
|
#define cJSON_AddTrueToObject(object,name) cJSON_AddItemToObject(object, name, cJSON_CreateTrue()) |
|
|
|