• Advertisement
Sign in to follow this  

Assertion failed while using function handles

This topic is 1869 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi,
After I updated my engine project to the latest WIP version of AngelScript I could successfully run my base testbed.
However I had a minor issue while trying to run Magic Portals with the updated version of AngelScript:

Assertion failed: (calledFunc), function AdjustGetOffset, file /../../../../source/as_restore.cpp, line 3471.

I could isolate the issue and reproduce it in a smaller excerpt:
[source lang="java"]class Foo
{
int a;
}

class Bar
{
float b;
}

funcdef void TEST_FUNC_HANDLE(Foo, Bar);

void testFunction(TEST_FUNC_HANDLE@ func)
{
func(Foo(), Bar());
}[/source]
It appears that the assertion fails while trying to save the bytecode for testFunction. Am I doing anything silly?

Share this post


Link to post
Share on other sites
Advertisement
It appears you've found a case where the code is not currently able to properly adjust the bytecode to be platform independent.

I'll investigate this and have a fix ready as soon as possible.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement