mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
builtin: move C. calls to .c.v files (#11164)
This commit is contained in:
15
vlib/builtin/option.c.v
Normal file
15
vlib/builtin/option.c.v
Normal file
@@ -0,0 +1,15 @@
|
||||
module builtin
|
||||
|
||||
[typedef]
|
||||
struct C.IError {
|
||||
_object voidptr
|
||||
}
|
||||
|
||||
[unsafe]
|
||||
pub fn (ie &IError) free() {
|
||||
unsafe {
|
||||
ie.msg.free()
|
||||
cie := &C.IError(ie)
|
||||
free(cie._object)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user