mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
builtin: remove opt_ok2() (part 2) (#16054)
This commit is contained in:
parent
4fbb29a2c0
commit
fb3d093e01
@ -133,14 +133,6 @@ fn _option_ok(data voidptr, mut option _option, size int) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn opt_ok2(data voidptr, mut option _option, size int) {
|
|
||||||
unsafe {
|
|
||||||
*option = _option{}
|
|
||||||
// use err to get the end of OptionBase and then memcpy into it
|
|
||||||
vmemcpy(&u8(&option.err) + sizeof(IError), data, size)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
struct _result {
|
struct _result {
|
||||||
is_error bool
|
is_error bool
|
||||||
err IError = none__
|
err IError = none__
|
||||||
|
Loading…
Reference in New Issue
Block a user