json: mark json_print_pretty/1 with @[markused] (used by cgen)

This commit is contained in:
Delyan Angelov 2024-11-18 22:39:20 +02:00
parent 3544d3c144
commit 2ba1271a2e
No known key found for this signature in database
GPG key ID: 66886C0F12D595ED

View file

@ -257,6 +257,7 @@ fn json_print(data &C.cJSON) string {
return r return r
} }
@[markused]
fn json_print_pretty(data &C.cJSON) string { fn json_print_pretty(data &C.cJSON) string {
s := C.cJSON_Print(data) s := C.cJSON_Print(data)
r := unsafe { tos_clone(&u8(s)) } r := unsafe { tos_clone(&u8(s)) }