mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
json: mark json_print_pretty/1 with @[markused]
(used by cgen)
This commit is contained in:
parent
3544d3c144
commit
2ba1271a2e
1 changed files with 1 additions and 0 deletions
|
@ -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)) }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue