Core/Misc: update g3dlite lib (#2904)

* Core/Misc: update g3dlite lib

* update

Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
This commit is contained in:
Viste
2020-07-30 13:35:45 +03:00
committed by GitHub
parent 91bbbf08eb
commit fcaf91b8b2
183 changed files with 13258 additions and 8022 deletions

View File

@@ -14,7 +14,7 @@
#include "G3D/FileSystem.h"
#include <time.h>
#ifdef G3D_WIN32
#ifdef G3D_WINDOWS
#include <imagehlp.h>
#else
#include <stdarg.h>
@@ -23,16 +23,16 @@
namespace G3D {
void logPrintf(const char* fmt, ...) {
va_list arg_list;
va_start(arg_list, fmt);
va_list arg_list;
va_start(arg_list, fmt);
Log::common()->vprintf(fmt, arg_list);
va_end(arg_list);
}
void logLazyPrintf(const char* fmt, ...) {
va_list arg_list;
va_start(arg_list, fmt);
va_list arg_list;
va_start(arg_list, fmt);
Log::common()->lazyvprintf(fmt, arg_list);
va_end(arg_list);
}
@@ -53,7 +53,7 @@ Log::Log(const std::string& filename, int stripFromStackBottom) :
std::string logName = base + ((ext != "") ? ("." + ext) : "");
// Write time is greater than 1ms. This may be a network drive.... try another file.
#ifdef G3D_WIN32
#ifdef G3D_WINDOWS
logName = std::string(std::getenv("TEMP")) + logName;
#else
logName = std::string("/tmp/") + logName;
@@ -86,7 +86,9 @@ Log::~Log() {
Log::commonLog = NULL;
}
fclose(logFile);
if (logFile) {
FileSystem::fclose(logFile);
}
}