summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/slang
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-02-26 14:32:29 -0700
committerBrian <[email protected]>2007-02-26 14:32:29 -0700
commit7f01ef171fa99e9f423fcaae28eff27edefc8d85 (patch)
treeb626b6bd27a14a67ff860df671c5aada6f378850 /src/mesa/shader/slang
parente63c7e089334fd219e0c738fb089be2f75c689d5 (diff)
Overhaul of error logging.
Diffstat (limited to 'src/mesa/shader/slang')
-rw-r--r--src/mesa/shader/slang/slang_error.h47
1 files changed, 3 insertions, 44 deletions
diff --git a/src/mesa/shader/slang/slang_error.h b/src/mesa/shader/slang/slang_error.h
index d35ae83fba0..064b11b498d 100644
--- a/src/mesa/shader/slang/slang_error.h
+++ b/src/mesa/shader/slang/slang_error.h
@@ -25,7 +25,7 @@
#ifndef SLANG_ERROR_H
#define SLANG_ERROR_H
-
+#if 0
extern void
_slang_reset_error(void);
@@ -37,49 +37,8 @@ _slang_record_error(const char *msg1, const char *msg2,
extern const char *
_slang_error_text(void);
-
-
-/**
- * Record a compilation error, single string message.
- */
-#define RETURN_ERROR(MSG, POS) \
-do { \
- _slang_record_error(MSG, "", POS, __FILE__, __LINE__); \
- return GL_FALSE; \
-} while (0)
-
-
-/**
- * Record a compilation error, two-string message.
- */
-#define RETURN_ERROR2(MSG1, MSG2, POS) \
-do { \
- _slang_record_error(MSG1, MSG2, POS, __FILE__, __LINE__); \
- return GL_FALSE; \
-} while (0)
-
-
-/**
- * Record a nil error. Either a real error message or out of memory should
- * have already been recorded.
- */
-#define RETURN_NIL() \
-do { \
- _slang_record_error("unknown", "", -1, __FILE__, __LINE__); \
- return GL_FALSE; \
-} while (0)
-
-
-/**
- * Used to report an out of memory condition.
- */
-#define RETURN_OUT_OF_MEMORY() \
-do { \
- _slang_record_error("Out of memory", "", -1, __FILE__, __LINE__); \
- return GL_FALSE; \
-} while (0)
-
-
+#endif
+foo!
#endif /* SLANG_ERROR_H */