Skip to content
Browse files

Add debug macro defs for use when not running tests.

  • Loading branch information...
1 parent 0314547 commit c97b2d3ef9d508f33e449d22a4797d7f991ad1dd @kellymclaughlin kellymclaughlin committed Aug 4, 2011
Showing with 10 additions and 0 deletions.
  1. +10 −0 include/luwak.hrl
View
10 include/luwak.hrl
@@ -26,4 +26,14 @@
-define(debugFmt(S, As), ok).
-endif.
+-else.
+
+-ifdef(DEBUG).
+-define(debugMsg(S), error_logger:info_msg(S)).
+-define(debugFmt(S, As), error_logger:info_msg(S,As)).
+-else.
+-define(debugMsg(S), ok).
+-define(debugFmt(S, As), ok).
+-endif.
+
-endif.

0 comments on commit c97b2d3

Please sign in to comment.
Something went wrong with that request. Please try again.