diff options
| author | Bryan Galdrikian <[email protected]> | 2017-02-24 09:32:20 -0800 |
|---|---|---|
| committer | Bryan Galdrikian <[email protected]> | 2017-02-24 09:32:20 -0800 |
| commit | e1bf674c16e3c8472b29574159c789cd3f0c64e0 (patch) | |
| tree | 9f0cfce09c71a2c27ff19589fcad6cd83504477c /NvBlast/tools/common/Log.cpp | |
| parent | first commit (diff) | |
| download | blast-e1bf674c16e3c8472b29574159c789cd3f0c64e0.tar.xz blast-e1bf674c16e3c8472b29574159c789cd3f0c64e0.zip | |
Updating to [email protected] and [email protected] with a new directory structure.
NvBlast folder is gone, files have been moved to top level directory. README is changed to reflect this.
Diffstat (limited to 'NvBlast/tools/common/Log.cpp')
| -rw-r--r-- | NvBlast/tools/common/Log.cpp | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/NvBlast/tools/common/Log.cpp b/NvBlast/tools/common/Log.cpp deleted file mode 100644 index 4371a7d..0000000 --- a/NvBlast/tools/common/Log.cpp +++ /dev/null @@ -1,59 +0,0 @@ -#include "Log.h" - -#include "PsString.h" - -#include <iomanip> -#include <stdarg.h> -#include <stdio.h> - -/////////////////////////////////////////////////////////////////////////// - -namespace Nv -{ -namespace Blast -{ - -void fLogf(const char* format, ...) -{ - char buf[4096], *p = buf; - va_list args; - int n; - - va_start(args, format); - //n = _vsnprintf(p, sizeof buf - 3, format, args); - n = vsprintf_s(p, sizeof(buf)-3, format, args); - va_end(args); - - p += (n < 0) ? sizeof buf - 3 : n; - - while (p > buf && isspace((unsigned char)p[-1])) - { - *--p = '\0'; - } - - *p++ = '\r'; - *p++ = '\n'; - *p = '\0'; - - fLog(buf, Log::TYPE_INFO); -} - - -////////////////////////////////////////////////////////////////////////////// - -void Log::flushDeferredMessages() -{ - if (mDeferredMessages.size() == 0) return; - - std::cout << std::endl; - for (std::vector<std::string>::iterator it = mDeferredMessages.begin(); it != mDeferredMessages.end(); ++it) - { - log(*it, mMinVerbosity); - } - mDeferredMessages.clear(); -} - - - -} // namespace Blast -} // namespace Nv |