Skip to content

Commit

Permalink
Startup rework first pass
Browse files Browse the repository at this point in the history
  • Loading branch information
dlmarquis committed Mar 5, 2024
1 parent b925382 commit 8d06b7b
Show file tree
Hide file tree
Showing 2 changed files with 447 additions and 283 deletions.
5 changes: 5 additions & 0 deletions json_compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@
#define json_array_get_length(JSON_ARRAY) \
(JSON_ARRAY ? json_array_get_length(JSON_ARRAY) : 0)

#define json_node_get_object(JSON_NODE) \
(JSON_NODE ? (JSON_NODE_HOLDS_OBJECT(JSON_NODE) ? json_node_get_object(JSON_NODE) : NULL) : NULL)
#define json_node_get_array(JSON_NODE) \
(JSON_NODE ? (JSON_NODE_HOLDS_ARRAY(JSON_NODE) ? json_node_get_array(JSON_NODE) : NULL) : NULL)

static gchar *
json_object_to_string(JsonObject *obj)
{
Expand Down
Loading

0 comments on commit 8d06b7b

Please sign in to comment.