goat3d
view src/log.cc @ 56:ca549434dc95
fixed a crashing bug in anm_destroy_node introduced when I added the multiple animations per node
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 23 Jan 2014 02:50:54 +0200 |
parents | 1d85d7dd0038 |
children | dad392c710df |
line source
1 #include <stdio.h>
2 #include <stdarg.h>
3 #include "log.h"
5 int goat_log_level = 256;
7 void g3dimpl::logmsg(int prio, const char *fmt, ...)
8 {
9 va_list ap;
11 if(goat_log_level < prio) {
12 return;
13 }
15 fprintf(stderr, "goat3d: ");
16 va_start(ap, fmt);
17 vfprintf(stderr, fmt, ap);
18 va_end(ap);
19 }