Skip to content

Introduce better error message when attempting to return a void value #67

Description

@Znurre

Currently, void only exists as a type when doing C interop, and cannot be represented inside of fluenc.

What void does it is basically does not push a value to the stack. This causes issue if you write something like...

return foo();

Where foo is an imported C function with void return type.

We will try to pop a value from the stack which does not exist. This will either corrupt the stack, or throw an unhandled exception.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions