From 6531adb6076d81cd6c454fe42a7c14a819e72f70 Mon Sep 17 00:00:00 2001
From: "Constantin P." <papizh.konstantin@demlabs.net>
Date: Mon, 7 Oct 2024 15:45:32 +0700
Subject: [PATCH] ...

---
 core/include/dap_json_rpc_errors.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/core/include/dap_json_rpc_errors.h b/core/include/dap_json_rpc_errors.h
index 008163e72..1de1023ba 100644
--- a/core/include/dap_json_rpc_errors.h
+++ b/core/include/dap_json_rpc_errors.h
@@ -73,7 +73,11 @@ dap_json_rpc_error_t *dap_json_rpc_create_from_json_object(json_object *a_jobj);
 
 void dap_json_rpc_add_standart_erros(void);
 
-#define dap_json_rpc_allocation_error(a_json_arr_reply) log_it(L_CRITICAL, "%s", c_error_memory_alloc); dap_json_rpc_error_add(a_json_arr_reply, DAP_JSON_RPC_ERR_CODE_MEMORY_ALLOCATED, "[%s] %s",  LOG_TAG, c_error_memory_alloc)
+#define dap_json_rpc_allocation_error(a_json_arr_reply) \
+    do {    \
+        log_it(L_CRITICAL, "%s", c_error_memory_alloc); \
+        dap_json_rpc_error_add(a_json_arr_reply, DAP_JSON_RPC_ERR_CODE_MEMORY_ALLOCATED, "[%s] %s",  LOG_TAG, c_error_memory_alloc); \
+    } while (0)
 
 #ifdef __cplusplus
 }
-- 
GitLab