Telegram Bot Api Client  0.6.1
Client_for_accessing_Telegram's_Bot_API
TBCDebug.h
1 #pragma once
2 #ifndef TBDebug_h
3 #define TBDebug_h
4 
5 #define TBCVERBOSE
6 
7 #ifdef TBCVERBOSE
8  #define DOUT(x) { Serial.print (F(x)); \
9  Serial.print (F(" -- ")); \
10  Serial.print (__FILE__); Serial.print (F(" in line ")); \
11  Serial.print (__LINE__); Serial.print (F(" -- ")); \
12  Serial.println (__FUNCTION__); \
13  }
14  #define DOUTKV(k, v) { Serial.print (F(k)); Serial.print (':'); Serial.print (v); \
15  Serial.print (F(" -- ")); \
16  Serial.print (__FILE__); Serial.print (F(" in line ")); \
17  Serial.print (__LINE__); Serial.print (F(" -- ")); \
18  Serial.println (__FUNCTION__); \
19  }
20 #else
21  #define DOUT(x)
22  #define DOUTKV(k, v)
23 #endif
24 
25 #endif