mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
remove silly msghandling.cxx
This commit is contained in:
parent
2d3fd6e709
commit
3e8b636090
@ -34,7 +34,6 @@
|
||||
tinyOsxGraphicsPipe.I tinyOsxGraphicsPipe.h \
|
||||
tinyOsxGraphicsWindow.h tinyOsxGraphicsWindow.I \
|
||||
$[if $[IS_OSX],tinyOsxGraphicsWindow.mm,] \
|
||||
msghandling.h \
|
||||
zbuffer.h zfeatures.h zgl.h \
|
||||
zline.h zmath.h \
|
||||
ztriangle_1.cxx ztriangle_2.cxx \
|
||||
@ -53,7 +52,6 @@
|
||||
init.cxx \
|
||||
td_light.cxx \
|
||||
memory.cxx \
|
||||
msghandling.cxx \
|
||||
specbuf.cxx \
|
||||
store_pixel.cxx \
|
||||
td_texture.cxx \
|
||||
|
@ -1,55 +0,0 @@
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#ifndef NDEBUG
|
||||
// Question: doesn't having this kinda defeat the purpose?
|
||||
#define NDEBUG
|
||||
#endif
|
||||
|
||||
#ifdef NDEBUG
|
||||
#define NO_DEBUG_OUTPUT
|
||||
#endif
|
||||
|
||||
/* Use this function to output messages when something unexpected
|
||||
happens (which might be an indication of an error). *Don't* use it
|
||||
when there's internal errors in the code - these should be handled
|
||||
by asserts. */
|
||||
void
|
||||
tgl_warning(const char *format, ...)
|
||||
{
|
||||
#ifndef NO_DEBUG_OUTPUT
|
||||
va_list args;
|
||||
va_start(args, format);
|
||||
fprintf(stderr, "*WARNING* ");
|
||||
vfprintf(stderr, format, args);
|
||||
va_end(args);
|
||||
#endif /* !NO_DEBUG_OUTPUT */
|
||||
}
|
||||
|
||||
/* This function should be used for debug output only. */
|
||||
void
|
||||
tgl_trace(const char *format, ...)
|
||||
{
|
||||
#ifndef NO_DEBUG_OUTPUT
|
||||
va_list args;
|
||||
va_start(args, format);
|
||||
fprintf(stderr, "*DEBUG* ");
|
||||
vfprintf(stderr, format, args);
|
||||
va_end(args);
|
||||
#endif /* !NO_DEBUG_OUTPUT */
|
||||
}
|
||||
|
||||
/* Use this function to output info about things in the code which
|
||||
should be fixed (missing handling of special cases, important
|
||||
features not implemented, known bugs/buglets, ...). */
|
||||
void
|
||||
tgl_fixme(const char *format, ...)
|
||||
{
|
||||
#ifndef NO_DEBUG_OUTPUT
|
||||
va_list args;
|
||||
va_start(args, format);
|
||||
fprintf(stderr, "*FIXME* ");
|
||||
vfprintf(stderr, format, args);
|
||||
va_end(args);
|
||||
#endif /* !NO_DEBUG_OUTPUT */
|
||||
}
|
@ -1,8 +0,0 @@
|
||||
#ifndef _msghandling_h_
|
||||
#define _msghandling_h_
|
||||
|
||||
extern void tgl_warning(const char *text, ...);
|
||||
extern void tgl_trace(const char *text, ...);
|
||||
extern void tgl_fixme(const char *text, ...);
|
||||
|
||||
#endif /* _msghandling_h_ */
|
@ -1,5 +1,4 @@
|
||||
#include "zgl.h"
|
||||
#include "msghandling.h"
|
||||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
@ -44,7 +43,6 @@ specbuf_get_buffer(GLContext *c, const int shininess_i,
|
||||
return buf;
|
||||
}
|
||||
/* overwrite the lru buffer */
|
||||
/*tgl_trace("overwriting spec buffer :(\n");*/
|
||||
oldest->shininess_i = shininess_i;
|
||||
oldest->last_used = c->specbuf_used_counter++;
|
||||
calc_buf(oldest, shininess);
|
||||
|
@ -1,5 +1,4 @@
|
||||
#include "zgl.h"
|
||||
#include "msghandling.h"
|
||||
#include <math.h>
|
||||
|
||||
static inline float clampf(float a,float min,float max)
|
||||
|
@ -5,7 +5,6 @@
|
||||
#include "init.cxx"
|
||||
#include "td_light.cxx"
|
||||
#include "memory.cxx"
|
||||
#include "msghandling.cxx"
|
||||
#include "specbuf.cxx"
|
||||
#include "store_pixel.cxx"
|
||||
#include "td_texture.cxx"
|
||||
|
Loading…
x
Reference in New Issue
Block a user