does such code exist??

loop()
{
      runA();
      executeX();
}

void runA()
{
//do a bunch of stuff
}

void executeX()
{
//do some other stuff
}