Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashing when hot reloading bad switch case #18

Open
lossientos opened this issue Jan 8, 2021 · 0 comments
Open

Crashing when hot reloading bad switch case #18

lossientos opened this issue Jan 8, 2021 · 0 comments

Comments

@lossientos
Copy link

this code crashes on hot reload

enum EFoo
{
    Bar,
    Baz,
};
float FooFunc(EFoo Cond)
{
    switch (Cond)
    {
        case Bar:
            return 0.f;
        case Baz:
            return 0.f;
    }
}

this code does not (unclear on why it doesn't happen with a return post switch case)

enum EFoo
{
    Bar,
    Baz,
};
float FooFunc(EFoo Cond)
{
    switch (Cond)
    {
        case Bar:
            return 0.f;
        case Baz:
            return 0.f;
    }
    return 0.f
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant