v2 / vlib / builtin / option.c.v
14 lines · 12 sloc · 166 bytes · 757929392e0e7a75fc1272116460981e589737d5
Raw
1module builtin
2
3@[typedef]
4pub struct C.IError {
5 _object voidptr
6}
7
8@[unsafe]
9pub fn (ie &IError) free() {
10 unsafe {
11 cie := &C.IError(ie)
12 free(cie._object)
13 }
14}
15