goat3d
annotate src/log.cc @ 58:d317eb4f83da
- made everything compile properly on windows again
- removed libanim/libvmath, we'll use them as external dependencies
- added new maxgoat_stub 3dsmax plugin project. Gets loaded as a max plugin and
loads the actual maxgoat (and later maxgoat_anim) exporters on demand, to
allow reloading the actual exporters without having to restart 3dsmax (which
takes AGES).
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 25 Mar 2014 03:19:55 +0200 |
parents | 1d85d7dd0038 |
children | dad392c710df |
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@47 | 7 void g3dimpl::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 } |