14.11.2012, 21:02
maybe you have *uh I forgot what this is called, maybe someone can tell me*
Example you have something like this where the stack is built up in more than one function
This is just a typical example, don't kill me >.<
Example you have something like this where the stack is built up in more than one function
pawn Code:
public StackStart()
{
new array[1024];
Stack1();
return 1;
}
public Stack1()
{
new array[1024];
Stack2();
return 1;
}
public Stack2()
{
new array[512];
Stack3();
/*OPTIONAL: somewhere in this function could fail to execute and the stack wouldn't be cleared*/
return 1;
}
public Stack3()
{
new array[2048];
//here in the final callback, it exceeds the stack
return 1;
}