Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. /*
  2.  * Copyright 2003 James Bursa <bursa@users.sourceforge.net>
  3.  * Copyright 2004 John Tytgat <John.Tytgat@aaug.net>
  4.  *
  5.  * This file is part of NetSurf, http://www.netsurf-browser.org/
  6.  * Licenced under the MIT License,
  7.  *                http://www.opensource.org/licenses/mit-license.php
  8.  */
  9.  
  10. #include <stdio.h>
  11.  
  12. #ifndef _LIBNSBMP_LOG_H_
  13. #define _LIBNSBMP_LOG_H_
  14.  
  15. #ifdef NDEBUG
  16. #  define LOG(x) ((void) 0)
  17. #else
  18. #  ifdef __GNUC__
  19. #    define LOG(x) do { printf x, fputc('\n', stdout)); } while (0)
  20. #  elif defined(__CC_NORCROFT)
  21. #    define LOG(x) do { printf x, fputc('\n', stdout)); } while (0)
  22. #  else
  23. #    define LOG(x) do { printf x, fputc('\n', stdout)); } while (0)
  24. #  endif
  25. #endif
  26.  
  27. #endif
  28.