debug.h 676 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef _DEBUG_H_
  2. #define _DEBUG_H_
  3. /*
  4. * Copyright (c) 2011-2012 Nokia Corporation and/or its subsidiary(-ies).
  5. * All rights reserved.
  6. * This component and the accompanying materials are made available
  7. * under the terms of the License "Eclipse Public License v1.0"
  8. * which accompanies this distribution, and is available
  9. * at the URL "http://www.eclipse.org/legal/epl-v10.html".
  10. *
  11. * Initial Contributors:
  12. * Nokia Corporation - initial contribution.
  13. *
  14. * Contributors:
  15. *
  16. * Description:
  17. *
  18. * Debugging macros
  19. *
  20. */
  21. #ifdef DEBUG
  22. #include <stdio.h>
  23. #define debug(format, ...) fprintf (stderr, format, __VA_ARGS__)
  24. #else
  25. #define debug(format, ...)
  26. #endif
  27. #endif