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

Assertion failed when trying to set a flag to a boolean #45

Closed
thaumictom opened this issue Jan 5, 2022 · 2 comments
Closed

Assertion failed when trying to set a flag to a boolean #45

thaumictom opened this issue Jan 5, 2022 · 2 comments
Labels
bug Something isn't working external library Needs changes in an external library

Comments

@thaumictom
Copy link

thaumictom commented Jan 5, 2022

The following code

#name "MyTest"
#author "ThaumicTom"
#category "None"

void RenderInterface()
{
	if (UI::Begin("Interface")) {
		if (UI::BeginTable("Table", 1, UI::TableFlags::SizingFixedFit = true | UI::TableFlags::Hideable | UI::TableFlags::RowBg)) {
			//                                                    ^^^^^^
			UI::TableSetupColumn("This is a column", 0, 10);
			UI::TableHeadersRow();

			for (uint i = 0; i < 5; i++) {
				UI::TableNextRow();
				UI::TableSetColumnIndex(0);
				UI::Text("Test");
			}

			UI::EndTable();
		}
	}
	UI::End();
}

void Main()
{
	RenderInterface();
}

returns the following error

image

It is ignoreable - but you have to press Ignore four times. The code is obviously illegal and a syntax error but it still causes the compiler problems.

Openplanet for Turbo (1.21.0)

@codecat codecat added bug Something isn't working external library Needs changes in an external library labels Jan 14, 2022
@codecat
Copy link
Member

codecat commented Jan 30, 2022

@codecat
Copy link
Member

codecat commented Feb 13, 2022

I'll close this issue for now considering the bug is in Angelscript and the issue was reported there.

@codecat codecat closed this as completed Feb 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working external library Needs changes in an external library
Projects
None yet
Development

No branches or pull requests

2 participants