Hi,
I have a module in which a few functions call each other:
function A()
{
...
}
function B()
{
...
C();
...
}
function C()
{
...
A();
...
}
Now AGS tells me that it doesn't know function C() from the code of function B(). There is an import in the header but it hasn't stummbled upon the function itself.
I know that if I switch the places of function B and C the problem will be solved but I want to keep this order. Can I?
I know that in C or C++ I can just declare the function at the top and use it everywhere I want.
Can I do this in AGS?
And is there a way to get over this situation in AGS:
function A()
{
...
B();
...
}
function B()
{
...
A();
...
}
Thanks,
Mishel.
I have a module in which a few functions call each other:
function A()
{
...
}
function B()
{
...
C();
...
}
function C()
{
...
A();
...
}
Now AGS tells me that it doesn't know function C() from the code of function B(). There is an import in the header but it hasn't stummbled upon the function itself.
I know that if I switch the places of function B and C the problem will be solved but I want to keep this order. Can I?
I know that in C or C++ I can just declare the function at the top and use it everywhere I want.
Can I do this in AGS?
And is there a way to get over this situation in AGS:
function A()
{
...
B();
...
}
function B()
{
...
A();
...
}
Thanks,
Mishel.