mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vh fixes for the UI module
This commit is contained in:
@ -186,7 +186,7 @@ pub fn free(ptr voidptr) {
|
||||
C.free(ptr)
|
||||
}
|
||||
|
||||
fn memdup(src voidptr, sz int) voidptr {
|
||||
pub fn memdup(src voidptr, sz int) voidptr {
|
||||
mem := malloc(sz)
|
||||
return C.memcpy(mem, src, sz)
|
||||
}
|
||||
|
Reference in New Issue
Block a user