all: do not allow uninitialized function pointers

This commit is contained in:
Alexander Medvednikov 2023-08-03 21:06:32 +03:00
parent 453137384e
commit 428fd7f57f
28 changed files with 110 additions and 64 deletions

View file

@ -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
}