Go to the documentation of this file.
17 #ifndef __BUSBOY_HELPERS_H__
18 #define __BUSBOY_HELPERS_H__
26 #define BUSBOY_FORMAT_STRING(targetString,message) { std::ostringstream _ss; _ss << message; targetString = _ss.str(); }
31 #define BUSBOY_RETURN_STRING(message) { std::ostringstream _ss; _ss << message; return _ss.str(); }
38 #define BUSBOY_THROW(name, message) { \
39 std::ostringstream _ss; \
40 _ss << message << std::endl << \
41 StackUtil::formatLocation(__FILE__, __FUNCTION__, __LINE__) << std::endl \
42 << StackUtil::generateBackTrace(); \
43 throw name(_ss.str()); \
46 #define BUSBOY_DEBUG(message) { \
47 std::cout << message << " at " << \
48 StackUtil::formatLocation(__FILE__, __FUNCTION__, __LINE__) << std::endl; \
Copyright 2014 Google Inc. All rights reserved.