Makefile fix to easily make linux, windows, web; DBG flag set correctly

This commit is contained in:
2023-09-03 17:50:02 +00:00
parent 3e0dc30645
commit 467f7b29ea
13 changed files with 87 additions and 79 deletions

View File

@@ -31,7 +31,7 @@ char consolelog[CONSOLE_BUF+1] = {'\0'};
void mYughLog(int category, int priority, int line, const char *file, const char *message, ...)
{
#ifdef DBG
#ifndef NDEBUG
if (priority >= logLevel) {
time_t now = time(0);
struct tm *tinfo = localtime(&now);
@@ -51,9 +51,6 @@ void mYughLog(int category, int priority, int line, const char *file, const char
snprintf(buffer, ERROR_BUFFER, "%s:%d: %s, %s: %s\n", file, line, logstr[priority], catstr[category], msgbuffer);
log_print(buffer);
// if (category != LOG_SCRIPT && priority >= 2)
// js_stacktrace();
}
#endif
}