mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vlib: add [unsafe] tag to more functions: tos, string_from_wide, strings.Builder: write_bytes, free (#8766)
This commit is contained in:
@@ -249,7 +249,7 @@ fn gg_cleanup_fn(user_data voidptr) {
|
||||
|
||||
fn gg_fail_fn(msg charptr, user_data voidptr) {
|
||||
mut g := unsafe { &Context(user_data) }
|
||||
vmsg := tos3(msg)
|
||||
vmsg := unsafe { tos3(msg) }
|
||||
if g.config.fail_fn != voidptr(0) {
|
||||
g.config.fail_fn(vmsg, g.config.user_data)
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user