Guest User

Untitled

a guest
Feb 28th, 2015
464
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1.  
  2. #define PROCESS_IMAGE( type ) \
  3. int process_image_##type(void *img, int width, int height ) \
  4. { \
  5. int x, y; \
  6. \
  7. for (y = 0; y < height; y++) { \
  8. for (x = 0; x < width; x++) { \
  9. type(img, x, y); \
  10. } \
  11. } \
  12. return 0 ; \
  13. }
  14.  
  15. PROCESS_IMAGE( foo )
  16. PROCESS_IMAGE( bar )
  17. PROCESS_IMAGE( baz )
Advertisement
Add Comment
Please, Sign In to add comment