(svn r19792) -Change: use the typed FOR_EACH_SET_BIT for Tracks (adf88)

This commit is contained in:
rubidium
2010-05-11 21:02:26 +00:00
parent fe71d4fc99
commit 99ecfe4061
5 changed files with 36 additions and 29 deletions

View File

@@ -16,6 +16,17 @@
#include "track_type.h"
#include "slope_func.h"
/**
* Iterate through each set Track in a TrackBits value.
* For more informations see FOR_EACH_SET_BIT_EX.
*
* @param var Loop index variable that stores fallowing set track. Must be of type Track.
* @param track_bits The value to iterate through (any expression).
*
* @see FOR_EACH_SET_BIT_EX
*/
#define FOR_EACH_SET_TRACK(var, track_bits) FOR_EACH_SET_BIT_EX(Track, var, TrackBits, track_bits)
/**
* Convert an Axis to the corresponding Track
* AXIS_X -> TRACK_X