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
|
@ -15,7 +15,7 @@ pub interface Modifier {
|
|||
pub type InspectorFn = fn (value &ast.Value, data voidptr) !
|
||||
|
||||
struct Inspector {
|
||||
inspector_callback InspectorFn
|
||||
inspector_callback InspectorFn = unsafe { nil }
|
||||
mut:
|
||||
data voidptr
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue