summaryrefslogtreecommitdiff
path: root/indra/llcommon
diff options
context:
space:
mode:
authorRider Linden <none@none>2015-04-09 16:46:41 -0700
committerRider Linden <none@none>2015-04-09 16:46:41 -0700
commite28a5b6eadd4c38498665b44f1c7e197615139f2 (patch)
treeaa623b21c1a37c265962ee6a2c876783715c7c13 /indra/llcommon
parentfb082a185d9988a5ced8b92c9d2a89e24739cbcf (diff)
Added LL_WARNS_IF to llerror.h
If the coro is given something other than a map from the http then move the return into a body section. Changed windlight to use a coroutine and the new LLCore::Http libarary. Extra comments into Event Polling.
Diffstat (limited to 'indra/llcommon')
-rwxr-xr-xindra/llcommon/llerror.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/indra/llcommon/llerror.h b/indra/llcommon/llerror.h
index 63040e1772..b1b5e9be7d 100755
--- a/indra/llcommon/llerror.h
+++ b/indra/llcommon/llerror.h
@@ -354,6 +354,7 @@ typedef LLError::NoClassInfo _LL_CLASS_TO_LOG;
#define LL_WARNS(...) lllog(LLError::LEVEL_WARN, false, ##__VA_ARGS__)
#define LL_ERRS(...) lllog(LLError::LEVEL_ERROR, false, ##__VA_ARGS__)
// alternative to llassert_always that prints explanatory message
+#define LL_WARNS_IF(exp, ...) if (exp) LL_WARNS(##__VA_ARGS__) << "(" #exp ")"
#define LL_ERRS_IF(exp, ...) if (exp) LL_ERRS(##__VA_ARGS__) << "(" #exp ")"
// Only print the log message once (good for warnings or infos that would otherwise