A C-style for loop macro