Take the 2008 Git User's Survey and help out! [ hide ]

public
Description: Phusion Passenger (mod_rails)
Homepage: http://www.modrails.com/
Clone URL: git://github.com/FooBarWidget/passenger.git
Search Repo:
Click here to lend your support to: passenger and make a donation at www.pledgie.com !
FooBarWidget (author)
Fri Feb 01 02:15:01 -0800 2008
commit  0df1814d5800bb379c4e405989bb70b7b104d3d6
tree    fa6546a8f1d2f697db56d7825ae358a9ffa2093b
parent  598ebedf9003a7310bb22ad09d18ec03823b067f
passenger / ext / apache2 / Utils.h
100644 28 lines (21 sloc) 0.589 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef _PASSENGER_UTILS_H_
#define _PASSENGER_UTILS_H_
 
#include <ostream>
 
namespace Passenger {
 
#ifdef PASSENGER_DEBUG
  #define P_DEBUG(expr) \
    do { \
      if (Passenger::_debugStream != 0) { \
        *Passenger::_debugStream << \
          "[" << __FILE__ << ":" << __LINE__ << "] " << \
          expr << std::endl; \
      } \
    } while (false)
#else
  #define P_DEBUG(expr) do { /* nothing */ } while (false)
#endif
 
  // Internal; do not use directly.
  extern std::ostream *_debugStream;
 
  void initDebugging(const char *logFile = NULL);
 
} // namespace Passenger
 
#endif /* _PASSENGER_UTILS_H_ */