Advertisement
tyler569

example

Jul 20th, 2018
382
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.32 KB | None | 0 0
  1. int
  2. #ifdef HAVE_FEATURE
  3. thing(int args)
  4. #else
  5. other_thing(int args)
  6. #endif
  7. {
  8.     do_things();
  9.  
  10. #ifdef HAVE_FEATURE
  11.     do_feature_things();
  12. #else
  13.     do_workaround_things();
  14. #endif
  15.  
  16.     do_more_things();
  17.     return whatever;
  18. }
  19.  
  20. int main() {
  21. #ifdef HAVE_FEATURE
  22.     thing(7);
  23. #else
  24.     other_thing(7);
  25. #endif
  26.  
  27.     return 0;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement