goat3d

view src/log.cc @ 40:a5c5cec3cb88

- added mesh attribute and face append functions - added Int4 constructor - continued the blender exporter - fixed a bug in clean_filename which made it produce unterminated strings - renamed clean_filename to goat3d_clean_filename and made it extern - added call to goat3d_clean_filename in the mesh XML export code to cleanup ctm filenames
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 13 Oct 2013 10:14:19 +0300
parents cb6c1a945a11
children 498ca7ac7047
line source
1 #include <stdio.h>
2 #include <stdarg.h>
3 #include "log.h"
5 int goat_log_level = 256;
7 void 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 }