I have to written a python script with class and its function. The function parameters shall be varied based on configuration. In 'C' language it can achieved using #ifdef or #if Macro
#ifdef MULTIPLE_APPLICATION
uint8 check_actions(int machine, int application_instance, int error_limit)
{
.....
}
#else /*single applciation*/
uint8 check_actions(int machine, int error_limit)
{
.....
}
In same way how can i achieve in python. Because i don't find anything that replace #ifdef in python. i want something like
#ifdef MULTIPLE_APPLICATION
def check_actions(self, machine, application_instance, error_limit)
#else
def check_actions(self, machine, error_limit)
.......
.......