Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
57bd892b
Commit
57bd892b
authored
May 30, 2006
by
Hisham Muhammad
Browse files
Add "debuglite" mode.
parent
9da282d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Makefile.am
View file @
57bd892b
...
...
@@ -29,3 +29,6 @@ ColumnsPanel.h
debug
:
$(MAKE)
all
CFLAGS
=
"-g -DDEBUG"
debuglite
:
$(MAKE)
all
CFLAGS
=
"-g -DDEBUGLITE"
debug.h
View file @
57bd892b
#ifdef
DEBUG
#if
def
ined(
DEBUG
)
#include "DebugMemory.h"
/* Full debug */
#include "DebugMemory.h"
#define calloc(a, b) DebugMemory_calloc(a, b, __FILE__, __LINE__);
#define malloc(x) DebugMemory_malloc(x, __FILE__, __LINE__, #x);
#define realloc(x,s) DebugMemory_realloc(x, s, __FILE__, __LINE__, #x);
#define strdup(x) DebugMemory_strdup(x, __FILE__, __LINE__);
#define free(x) DebugMemory_free(x, __FILE__, __LINE__);
#define debug_done() DebugMemory_report();
#define calloc(a, b) DebugMemory_calloc(a, b, __FILE__, __LINE__);
#define malloc(x) DebugMemory_malloc(x, __FILE__, __LINE__);
#define realloc(x,s) DebugMemory_realloc(x, s, __FILE__, __LINE__);
#define strdup(x) DebugMemory_strdup(x, __FILE__, __LINE__);
#define free(x) DebugMemory_free(x, __FILE__, __LINE__);
#elif defined(DEBUGLITE)
#define debug_done() DebugMemory_report();
/* Assertions and core only */
#ifdef NDEBUG
#undef NDEBUG
#endif
#define debug_done() sleep(0)
#endif
#ifndef DEBUG
#else
#define NDEBUG
#define debug_done() sleep(0)
/* No debugging */
#define NDEBUG
#define debug_done() sleep(0)
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment