mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
all: do not allow uninitialized function pointers
This commit is contained in:
parent
453137384e
commit
428fd7f57f
28 changed files with 110 additions and 64 deletions
|
@ -19,8 +19,8 @@ mut:
|
|||
|
||||
struct EventHandler[T] {
|
||||
name T
|
||||
handler EventHandlerFn
|
||||
receiver voidptr = unsafe { nil }
|
||||
handler EventHandlerFn = unsafe { nil }
|
||||
receiver voidptr = unsafe { nil }
|
||||
once bool
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue