Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Logging.h
00001 #ifndef __LOGGING__ 00002 #define __LOGGING__ 00003 00004 #define DEBUG 00005 00006 #ifdef DEBUG 00007 #define LOG_DEBUG(...) { printf("[%s]--DEBUG-- ", __FILE__); printf(__VA_ARGS__); printf("\r\n"); } 00008 #define LOG_ERROR(...) { printf("[%s]--ERROR-- ", __FILE__); printf(__VA_ARGS__); printf("\r\n"); } 00009 #else 00010 #define LOG_DEBUG(...) {} 00011 #define LOG_ERROR(...) { printf("--ERROR-- "); printf(__VA_ARGS__); printf("\r\n"); } 00012 #endif 00013 00014 00015 #endif
Generated on Wed Jul 13 2022 01:56:24 by
1.7.2