Skip to content

Compilation doesn't succeed for K&R style blocks #88

@MeltyPlayer

Description

@MeltyPlayer

I've just started using VUEngine, this is incredibly impressive! I especially like how you've set up a transpiler that allows for object-oriented programming while still targeting C.

I was trying to set up a barebones test class, and was noticing weird errors in the log like "unused field" and "_this" not defined. I couldn't figure out what the issue was for the life of me, so I kept tweaking my code until it looked like the code from the sample project. These errors only finally went away when I switched from using K&R style blocks (I personally find these more readable) to Allman style blocks, i.e. from:

while (x == y) {
    foo();
    bar();
}

to

while (x == y)
{
    foo();
    bar();
}

Ideally, the transpiler should work regardless of how the lines are formatted, so I wanted to report this as a minor issue.

Keep up the good work, excited to see your future developments on VUEngine and VUEngine Studio!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions