Can't you just use prototypes?
Like this:
Code: ags
This should work if I am not mistaken.
EDIT: Oops, I should've read your original post better, I guess. Sorry, I now see your problem, I don't know if AGS supports prototypes yet, and I am too lazy to try it out, but you should...
Like this:
// this is the prototype - the compiler will now know that function B does exist, although it doesn't yet know where it is...
function B (...);
// define function A
function A ( ... )
{
// do stuff
// then call B
B ( ... );
}
// define function B
function B ( ... )
{
// do stuff
// then call A
A ( ... );
}
This should work if I am not mistaken.
EDIT: Oops, I should've read your original post better, I guess. Sorry, I now see your problem, I don't know if AGS supports prototypes yet, and I am too lazy to try it out, but you should...
