predef_check_cc.h 331 B

12345678910111213141516171819
  1. /*
  2. Copyright Rene Rivera 2015
  3. Distributed under the Boost Software License, Version 1.0.
  4. (See accompanying file LICENSE_1_0.txt or copy at
  5. http://www.boost.org/LICENSE_1_0.txt)
  6. */
  7. #include <boost/predef.h>
  8. #ifdef CHECK
  9. # if ((CHECK) == 0)
  10. # error "FAILED"
  11. # endif
  12. #endif
  13. int dummy()
  14. {
  15. static int d = 0;
  16. return d++;
  17. }