Sign in to follow this  
sepul

FuncDef + Array -> Assertion failure

Recommended Posts

here is my script :
[code]

funcdef void CALLBACK();
void foo1()
{
Message(0, "test1\n");
}

void foo2()
{
Message(0, "test2\n");
}

CALLBACK@[] g_funcs = {@foo1, @foo2};

void main()
{
CALLBACK@ func = g_funcs[0];
func();
}
[/code]


I'm also using the default array implemented in scriptarray.cpp
This code executes without a problem , but on quitting the application (asEngine->release()) I get assertion failure :
Program: as_configgroup.cpp
Line: 192
Expression: func->returnType.GetObjectType() != type

did I do something wrong here ?

Share this post


Link to post
Share on other sites
It wasn't a bug in AngelScript, actually it was my fault , cuz I have modified ScriptArray.cpp somewhere and made it do this. and now it's fixed
my bad, sorry

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this