common.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* GNU Objective C Runtime Common Private Definitions
  2. Copyright (C) 2010-2015 Free Software Foundation, Inc.
  3. Contributed by Nicola Pero
  4. This file is part of GCC.
  5. GCC is free software; you can redistribute it and/or modify it under the
  6. terms of the GNU General Public License as published by the Free Software
  7. Foundation; either version 3, or (at your option) any later version.
  8. GCC is distributed in the hope that it will be useful, but WITHOUT ANY
  9. WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  10. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
  11. details.
  12. Under Section 7 of GPL version 3, you are granted additional
  13. permissions described in the GCC Runtime Library Exception, version
  14. 3.1, as published by the Free Software Foundation.
  15. You should have received a copy of the GNU General Public License and
  16. a copy of the GCC Runtime Library Exception along with this program;
  17. see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
  18. <http://www.gnu.org/licenses/>. */
  19. #ifndef __objc_private_common_INCLUDE_GNU
  20. #define __objc_private_common_INCLUDE_GNU
  21. /* This file contains definitions that should be included by all .c
  22. and .m files in libobjc. */
  23. /* When debugging libobjc, add
  24. #define DEBUG 1
  25. at the very beginning of a file in libobjc (before including this file) to turn
  26. on DEBUG_PRINTF(). */
  27. #ifdef DEBUG
  28. #include <stdio.h>
  29. #define DEBUG_PRINTF(format, args...) printf (format, ## args)
  30. #else
  31. #define DEBUG_PRINTF(format, args...)
  32. #endif
  33. #endif /* __objc_private_common_INCLUDE_GNU */