
Zitat von
Iqon
Ich will Funktionen mit minimalen Aufwand (=ein Macro) aufteilen können.
So meinte ich das
Code:
void longrunning(void) {
static step = 0;
switch(step){
case 0:
/*...*/ // do something
step++;
break; //CUSTOM_BREAK;
case 1:
/*...*/ // do something more
step = 0;
}
}
Ist doch aufgeteilt, oder nicht?
Lesezeichen