Skip to content

The test gTypeInfoGetTag(t) == GITypeTag.VOID may not do what you have expected #211

@StefanSalewski

Description

@StefanSalewski

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions