DnD: Add line number to debug messages

This commit is contained in:
Daniel Zaoui 2015-02-25 10:36:13 +02:00 committed by Daniel Zaoui
parent ed8505ea01
commit a04166da20
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@
//#define DEBUGON 1
#ifdef DEBUGON
# define cnp_debug(fmt, args...) fprintf(stderr, __FILE__":%s : " fmt , __FUNCTION__, ##args)
# define cnp_debug(fmt, args...) fprintf(stderr, __FILE__":%s/%d : " fmt , __FUNCTION__, __LINE__, ##args)
#else
# define cnp_debug(x...) do { } while (0)
#endif