#define WARN_ONCE(a) { \
static int warn=1; \
if(warn){ \
- fprintf(stderr, "***WARN_ONCE*** " a); \
+ fprintf(stderr, "%s:%s line %d ***WARN_ONCE*** " a, \
+ __FILE__, __FUNCTION__, __LINE__); \
warn=0;\
} \
}
if(start+min_vertices>end){
static int warn_once=1;
if(warn_once){
- fprintf(stderr, "%s:%s Not enough vertices to draw primitive %02x - help me !\n",
+ fprintf(stderr, "%s:%s ***WARN_ONCE*** Not enough vertices to draw primitive %02x - help me !\n",
__FILE__, __FUNCTION__,
prim & PRIM_MODE_MASK);
warn_once=0;