short global; void function(void) { if(global < 0 ) { //do something to global function(); } else return; }