Note that the test is true when t (function result) is a plain pointer. For some locations in the source text, better use
proc typeIsReallyVoidAndNotPointer(t: GITypeInfo): bool =
gTypeInfoGetTag(t) == GITypeTag.VOID and gTypeInfoIsPointer(t) == GFalse