summaryrefslogtreecommitdiff
path: root/apps/codecs/dumb/include
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/dumb/include')
-rw-r--r--apps/codecs/dumb/include/dumb.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/codecs/dumb/include/dumb.h b/apps/codecs/dumb/include/dumb.h
index 3d6d6f940d..2aae95ccce 100644
--- a/apps/codecs/dumb/include/dumb.h
+++ b/apps/codecs/dumb/include/dumb.h
@@ -83,6 +83,9 @@
83#define ABS(x) (((x) >= 0) ? (x) : (-(x))) 83#define ABS(x) (((x) >= 0) ? (x) : (-(x)))
84 84
85 85
86#if 0 /* This code serves no useful purpose for Rockbox. Possibly the trace
87 thing could be defined for simulator... */
88
86#ifdef DEBUGMODE 89#ifdef DEBUGMODE
87 90
88#ifndef ASSERT 91#ifndef ASSERT
@@ -105,6 +108,17 @@
105 108
106#endif 109#endif
107 110
111#else /* 0 */
112/* disable TRACE() and ASSERT() calls */
113#define TRACE(...)
114#define ASSERT(...)
115
116/* now fake float function to hush the compiler */
117#define pow(x,y) ((x)+(y))
118#define floor(x) x
119#define log(x) (x)
120#define exp(x) (x)
121#endif /* 0 */
108 122
109#define DUMB_ID(a,b,c,d) (((unsigned int)(a) << 24) | \ 123#define DUMB_ID(a,b,c,d) (((unsigned int)(a) << 24) | \
110 ((unsigned int)(b) << 16) | \ 124 ((unsigned int)(b) << 16) | \