Skip to content

Commit

Permalink
remove USE_DEBUG macro
Browse files Browse the repository at this point in the history
  • Loading branch information
xiehuc committed Feb 26, 2015
1 parent 4548d76 commit 42632c0
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ message( "===============================================")

set(VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")

string(COMPARE EQUAL "${CMAKE_BUILD_TYPE}" "Debug" USE_DEBUG)
configure_file(config.h.in ${PROJECT_BINARY_DIR}/lwqq-config.h)
configure_file(lwqq.pc.in ${PROJECT_BINARY_DIR}/lwqq.pc @ONLY)
install(FILES "${PROJECT_BINARY_DIR}/lwqq-config.h" DESTINATION include/lwqq)
Expand Down
5 changes: 1 addition & 4 deletions config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,12 @@
//detach thread without join it
#define DETACH_THREAD @QUICK_QUIT@

//enable additional debug function
#define USE_DEBUG @USE_DEBUG@

//write discu into database
#define DISCU_READ_DB 1

// when continuly poll_msg_lost happend {?} times, send relink
// default : 5
#define RETRY_BEFORE_RELINK 3
#define RETRY_BEFORE_RELINK 4

// set poll_msg timeout {?} seconds
// default : 90
Expand Down
2 changes: 1 addition & 1 deletion lib/http.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ typedef struct D_ITEM{
/* For async request */


#if USE_DEBUG
#ifndef NDEBUG
int lwqq_gdb_whats_running()
{
D_ITEM* item;
Expand Down
2 changes: 1 addition & 1 deletion lib/info.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ struct LwqqDiscuMemChange {
struct str_list_* group_members;
struct str_list_* relate_groups;
};
#if USE_DEBUG
#ifndef NDEBUG
int lwqq_gdb_list_group_member(LwqqGroup* g)
{
LwqqSimpleBuddy* sb;
Expand Down

0 comments on commit 42632c0

Please sign in to comment.