mirror of
https://github.com/nunuhara/xsystem4.git
synced 2026-10-10 00:08:23 +03:00
Replace debug_print with to_json
to_json and cJSON_Print are now used when displaying debug information. The main reason for this change it to support sending objects over DAP.
This commit is contained in:
+1
-1
@@ -77,7 +77,7 @@ static void send_response(cJSON *response, bool success)
|
||||
send_json(response);
|
||||
}
|
||||
|
||||
static void emit_event(const char *name, struct cJSON *body)
|
||||
static void emit_event(const char *name, cJSON *body)
|
||||
{
|
||||
cJSON *event = cJSON_CreateObject();
|
||||
cJSON_AddStringToObject(event, "type", "event");
|
||||
|
||||
Reference in New Issue
Block a user