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

nwn_script_comp: Mismatched data type between function declaration and implementation is not properly detected #114

Open
LaputianBird opened this issue Apr 1, 2024 · 0 comments

Comments

@LaputianBird
Copy link
Contributor

LaputianBird commented Apr 1, 2024

While the case of

void some_function();

int some_function()
{
    return 10;
}

void main()
{
    PrintInteger(
        some_function()
    );
}

is properly detected with a mismatched parameters error message, the case of

void some_function();

int some_function()
{
    return 10;
}

void main()
{
    some_function();
}

is apparently compiled without errors with the stand-alone cli compiler, but fails with a STACK UNDERFLOW error from the in-game script chunk console

@LaputianBird LaputianBird changed the title nwn_script_comp: mismatched data type between function declaration and implementation is not properly detected nwn_script_comp: Mismatched data type between function declaration and implementation is not properly detected Apr 1, 2024
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