goat3d

annotate src/log.cc @ 29:3d669155709d

- switched the unix build to use the internal vmath/anim as well - fixed a memory corruption issue which was caused by including the system-wide installed version of the anim.h header file - started the ass2goat assimp->goat3d converter
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 29 Sep 2013 21:53:03 +0300
parents cb6c1a945a11
children 498ca7ac7047
rev   line source
nuclear@16 1 #include <stdio.h>
nuclear@16 2 #include <stdarg.h>
nuclear@16 3 #include "log.h"
nuclear@16 4
nuclear@16 5 int goat_log_level = 256;
nuclear@16 6
nuclear@16 7 void logmsg(int prio, const char *fmt, ...)
nuclear@16 8 {
nuclear@16 9 va_list ap;
nuclear@16 10
nuclear@17 11 if(goat_log_level < prio) {
nuclear@16 12 return;
nuclear@16 13 }
nuclear@16 14
nuclear@17 15 fprintf(stderr, "goat3d: ");
nuclear@16 16 va_start(ap, fmt);
nuclear@16 17 vfprintf(stderr, fmt, ap);
nuclear@16 18 va_end(ap);
nuclear@16 19 }