shithub: tinygl

Download patch

ref: de7f5d4b7eca59b2f06e4b7ff131a74c72b9515a
parent: 826f785fffa4bc0b6769308096025f561edea846
author: David <gek@katherine>
date: Tue Feb 16 19:08:20 EST 2021

A

--- a/src/msghandling.c
+++ b/src/msghandling.c
@@ -2,7 +2,7 @@
 #include <stdarg.h>
 #include <stdio.h>
 #include "zgl.h"
-//#define NDEBUG
+#define NDEBUG
 
 #ifdef NDEBUG
 #define NO_DEBUG_OUTPUT
@@ -48,6 +48,7 @@
 
 
 void gl_fatal_error(char* format, ...) {
+#ifndef NO_DEBUG_OUTPUT
 	va_list ap;
 
 	va_start(ap, format);
@@ -57,4 +58,5 @@
 	fprintf(stderr, "\n");
 	exit(1);
 	va_end(ap);
+#endif
 }