Can I re-define a function or check if it exists?

Viewed 9618

I have a question about (re-)defining functions. My goal is to have a script where I can choose to define a function or not. Like this:

void func(){}

int main(){
   if (func)func();
}

AND without the function, just:

int main(){
   if (func)func();
}

Anybody an idea?

8 Answers
Related