Skip to content

Commit

Permalink
fixed compile error, on varargs macro
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Mullen authored and Patrick Mullen committed Oct 3, 2009
1 parent 1f56b4e commit 866da32
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/rxvt.h.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -229,12 +229,14 @@ f
#if DEBUG #if DEBUG
#ifndef chr_debug_loop #ifndef chr_debug_loop
#define FUNCTION_DEBUG(function_name) print(function_name); #define FUNCTION_DEBUG(function_name) print(function_name);
#define CONSOLE_DEBUG(...) print(__VA_ARGS__);
#define VAR_DEBUG(var_name, var_val) print(var_name,var_val); #define VAR_DEBUG(var_name, var_val) print(var_name,var_val);

#define CASE_DEBUG(function_name) print(function_name); #define CASE_DEBUG(function_name) print(function_name);
#define ROW_BUF_DEBUG this.row_buf_debug(); #define ROW_BUF_DEBUG this.row_buf_debug();
#define ROW_IN_BUF_DEBUG(label) this.inline_row_buf_debug(label); #define ROW_IN_BUF_DEBUG(label) this.inline_row_buf_debug(label);
#define ROW_DEBUG(label, line) this.inline_row_debug(label, (line)); #define ROW_DEBUG(label, line) this.inline_row_debug(label, (line));
//#d efine CONSOLE_DEBUG(...) print(__VA_ARGS__);
#define CONSOLE_DEBUG(__unused__) ;
#endif #endif
#else #else
#define ROW_BUF_DEBUG ; #define ROW_BUF_DEBUG ;
Expand All @@ -243,8 +245,8 @@ f
#define FUNCTION_DEBUG(function_name) ; #define FUNCTION_DEBUG(function_name) ;
#define VAR_DEBUG(var_name, var_val) ; #define VAR_DEBUG(var_name, var_val) ;
#define CASE_DEBUG(function_name) ; #define CASE_DEBUG(function_name) ;

#define CONSOLE_DEBUG(__unused__) ; #define CONSOLE_DEBUG(__unused__) ;

//#define ddeprintf(...) fprintf (stderr, __VA_ARGS__) //#define ddeprintf(...) fprintf (stderr, __VA_ARGS__)




Expand Down

0 comments on commit 866da32

Please sign in to comment.