Index: obj_text.h =================================================================== --- obj_text.h (revision 19605) +++ obj_text.h (revision 19606) @@ -117,6 +117,22 @@ { \ PCB_TEXT_LOOP(layer) +#define PCB_TEXT_COPPER_LOOP(top) do { \ + pcb_cardinal_t l; \ + pcb_layer_t *layer = (top)->Layer; \ + for (l = 0; l < ((top)->LayerN > 0 ? (top)->LayerN : PCB->Data->LayerN); l++, layer++) \ + { \ + if (!(pcb_layer_flags(PCB, l) & PCB_LYT_COPPER)) continue; \ + PCB_TEXT_LOOP(layer) + +#define PCB_SILK_COPPER_LOOP(top) do { \ + pcb_cardinal_t l; \ + pcb_layer_t *layer = (top)->Layer; \ + for (l = 0; l < ((top)->LayerN > 0 ? (top)->LayerN : PCB->Data->LayerN); l++, layer++) \ + { \ + if (!(pcb_layer_flags(PCB, l) & PCB_LYT_SILK)) continue; \ + PCB_TEXT_LOOP(layer) + #define PCB_TEXT_VISIBLE_LOOP(board) do { \ pcb_cardinal_t l; \ pcb_layer_t *layer = (board)->Data->Layer; \