pre autonomous functions

In robotC we were able to put pre autonomous functions in the pre auton section, Can/How do we do that in VEX C++?
it looked like:

void roll (int millisecond,int speed)
{
motor[port7] = speed;
motor[port8] = speed;
delay(millisecond);
motor[port7] = 0;
motor[port8] = 0;
}