mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
eventbus: remove hacks, add sender
This commit is contained in:
committed by
Alexander Medvednikov
parent
02939d776b
commit
489ec05b23
@@ -11,6 +11,8 @@ fn main(){
|
||||
some_module.do_work()
|
||||
}
|
||||
|
||||
fn on_error(p eventbus.Params) {
|
||||
fn on_error(sender voidptr, p eventbus.Params) {
|
||||
work := *(*some_module.Work(sender))
|
||||
println(work.hours)
|
||||
println(p.get_string("error"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user