gda-debug-macros.h | gda-debug-macros.h | |||
---|---|---|---|---|
skipping to change at line 26 | skipping to change at line 26 | |||
* write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330 , | * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330 , | |||
* Boston, MA 02111-1307, USA. | * Boston, MA 02111-1307, USA. | |||
*/ | */ | |||
#ifndef _GDA_DEBUG_MACROS_H_ | #ifndef _GDA_DEBUG_MACROS_H_ | |||
#define _GDA_DEBUG_MACROS_H_ | #define _GDA_DEBUG_MACROS_H_ | |||
#include <glib.h> | #include <glib.h> | |||
#include <glib-object.h> | #include <glib-object.h> | |||
#ifdef GDA_DEBUG | #define TO_IMPLEMENT g_print ("Implementation missing: %s() in %s line %d\n | |||
#define D_COL_NOR "\033[0m" | ", __FUNCTION__, __FILE__,__LINE__) | |||
#define D_COL_H0 "\033[;34;7m" | ||||
#define D_COL_H1 "\033[;36;7m" | ||||
#define D_COL_H2 "\033[;36;4m" | ||||
#define D_COL_OK "\033[;32m" | ||||
#define D_COL_ERR "\033[;31;1m" | ||||
#endif | ||||
#ifndef TO_IMPLEMENT | ||||
#ifdef GDA_DEBUG | ||||
#define TO_IMPLEMENT g_print (D_COL_ERR "Implementation missing:" D_COL | ||||
_NOR " %s() in %s line %d\n", __FUNCTION__, __FILE__,__LINE__) | ||||
#else | ||||
#define TO_IMPLEMENT g_print ("Implementation missing: %s() in %s line | ||||
%d\n", __FUNCTION__, __FILE__,__LINE__) | ||||
#endif | ||||
#endif | ||||
#endif | #endif | |||
End of changes. 1 change blocks. | ||||
18 lines changed or deleted | 2 lines changed or added | |||