mirror of
https://github.com/vlang/v.git
synced 2025-09-16 02:49:31 -04:00
json: mark json_print_pretty/1 with @[markused]
(used by cgen)
This commit is contained in:
parent
3544d3c144
commit
2ba1271a2e
@ -257,6 +257,7 @@ fn json_print(data &C.cJSON) string {
|
||||
return r
|
||||
}
|
||||
|
||||
@[markused]
|
||||
fn json_print_pretty(data &C.cJSON) string {
|
||||
s := C.cJSON_Print(data)
|
||||
r := unsafe { tos_clone(&u8(s)) }
|
||||
|
Loading…
x
Reference in New Issue
Block a user