I can't get your macro to work, JustSid.
Throws an error when it comes to the first wait(1) in:
while(inetrequest_running == ON || updateRunning == ON) wait(1);
#define wait(i) do{char *funct; engine_gettaskinfo(0, &funct, NULL); debugFct(funct); wait(i); } while(0)
Also tried it without the do while(0).
I've never worked with function macros before...
The error thrown is:
"info" undeclared identifier
which is curious, because it seems to be talking about the "info" in engine_gettaskinfo. (When changing the code a little, I got "ttaskinfo" undeclared identifier)