summaryrefslogtreecommitdiff
path: root/3dc/win95/DXLOG.H
diff options
context:
space:
mode:
authorRebellion Developments <rebellion@nomail>2000-03-16 11:25:00 +0100
committerPatryk Obara <dreamer.tan@gmail.com>2019-08-19 05:45:17 +0200
commit218ca90543758a20ac326e444ca0643174ca7384 (patch)
tree16bfe3e5307f9f515489000f28728224291a0e3b /3dc/win95/DXLOG.H
Import Aliens vs Predator - Gold (Build 116)
Source code release, imported from: https://www.gamefront.com/games/aliens-vs-predator-3/file/avp-gold-complete-source-code All text files were converted to Unix format.
Diffstat (limited to '3dc/win95/DXLOG.H')
-rw-r--r--3dc/win95/DXLOG.H37
1 files changed, 37 insertions, 0 deletions
diff --git a/3dc/win95/DXLOG.H b/3dc/win95/DXLOG.H
new file mode 100644
index 0000000..d67b57c
--- /dev/null
+++ b/3dc/win95/DXLOG.H
@@ -0,0 +1,37 @@
+#ifndef _included_dxlog_h_
+#define _included_dxlog_h_
+
+#include "system.h"
+#include "ddraw.h"
+#include "d3d.h"
+#include "d3drm.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#if debug
+
+void dx_err_log(HRESULT error, int line, char const * file);
+void dx_str_log(char const * str, int line, char const * file);
+void dx_line_log(int line, char const * file);
+void dx_strf_log(char const * fmt, ...);
+
+#define LOGDXERR(error) dx_err_log(error,__LINE__,__FILE__)
+#define LOGDXSTR(str) dx_str_log(str,__LINE__,__FILE__)
+#define LOGDXFMT(args) (dx_line_log(__LINE__,__FILE__),dx_strf_log args)
+
+#else
+
+#define LOGDXERR(error) (void)0
+#define LOGDXSTR(str) (void)0
+#define LOGDXFMT(args) (void)0
+
+#endif
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* ! _included_dxlog_h_ */