]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/16_dbg.h
i did some minor things including commenting out some joy stick timing stuff and...
[16.git] / src / lib / 16_dbg.h
index 9aaf9644c1757ef922bec2c51c10d536e9dd290a..f71f545b59181d5c3ed4d71337dffbcbf3c97cb3 100755 (executable)
-
-#ifndef _SRC_LIB_16_DBG
-#define _SRC_LIB_16_DBG
-
-# ifdef DEBUGSERIAL
-#  include <hw/8250/8250.h>
-
-void _DEBUGF(const char *fmt,...);
-void _DEBUG(const char *msg);
-int _DEBUG_INIT();
-# else
-static inline void _DEBUGF(const char *fmt,...) {
-       // NOTHING
-}
-static inline void _DEBUG(const char *msg) {
-       // NOTHING
-}
-
-static inline int _DEBUG_INIT() {
-       // NOTHING
-       return -1;
-}
-# endif
-#endif // _SRC_LIB_16_DBG
-
+/* Project 16 Source Code~\r
+ * Copyright (C) 2012-2017 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover\r
+ *\r
+ * This file is part of Project 16.\r
+ *\r
+ * Project 16 is free software; you can redistribute it and/or modify\r
+ * it under the terms of the GNU General Public License as published by\r
+ * the Free Software Foundation; either version 3 of the License, or\r
+ * (at your option) any later version.\r
+ *\r
+ * Project 16 is distributed in the hope that it will be useful,\r
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+ * GNU General Public License for more details.\r
+ *\r
+ * You should have received a copy of the GNU General Public License\r
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>, or\r
+ * write to the Free Software Foundation, Inc., 51 Franklin Street,\r
+ * Fifth Floor, Boston, MA 02110-1301 USA.\r
+ *\r
+ */\r
+\r
+#ifndef _SRC_LIB_16_DBG\r
+#define _SRC_LIB_16_DBG\r
+\r
+//#include "src/lib/16_head.h"\r
+#include "src/lib/16_pm.h"\r
+//#include "src/lib/16_tdef.h"\r
+\r
+#define __DEBUG__\r
+\r
+#ifdef __DEBUG__\r
+#define __DEBUG_InputMgr__\r
+#define __DEBUG_MAP__\r
+//#define __DEBUG_2__\r
+//#define __DEBUG_CA__\r
+//#define __DEBUG_PM__\r
+//#define __DEBUG_MM__\r
+#define __DEBUG_RF__\r
+#define __DEBUG_SPRI__\r
+#define __DEBUG_VL__\r
+#endif\r
+\r
+\r
+#ifdef __DEBUG__\r
+#ifdef __DEBUG_MM__\r
+extern boolean dbg_debugmm;\r
+#endif\r
+#ifdef __DEBUG_PM__\r
+//#define __DEBUG_PM_MAIN__\r
+extern boolean dbg_debugpm;\r
+#endif\r
+#ifdef __DEBUG_CA__\r
+extern boolean dbg_debugca;\r
+#endif\r
+#ifdef __DEBUG_InputMgr__\r
+extern boolean dbg_testkeyin,dbg_testcontrolnoisy,dbg_nointest,dbg_joymousedelta;\r
+#endif\r
+#ifdef __DEBUG_MAP__\r
+extern boolean dbg_maptext;\r
+extern byte *dbg_mapdata;\r
+#endif\r
+#ifdef __DEBUG_RF__\r
+extern boolean dbg_pagenorendermap,dbg_pagedelayrendermap;\r
+#endif\r
+#ifdef __DEBUG_SPRI__\r
+extern boolean dbg_delayanimation;\r
+#endif\r
+#endif\r
+\r
+#ifdef __WATCOMC__\r
+typedef struct\r
+{\r
+       word    palq,mult;\r
+       word    palx, paly;\r
+       byte    i, oi;\r
+} spv_t;\r
+# ifdef DEBUGSERIAL\r
+#  include <hw/8250/8250.h>\r
+\r
+void _DEBUGF(const char *fmt,...);\r
+void _DEBUG(const char *msg);\r
+int _DEBUG_INIT();\r
+# else\r
+static inline void _DEBUGF(const char *fmt,...) {\r
+       // NOTHING\r
+}\r
+static inline void _DEBUG(const char *msg) {\r
+       // NOTHING\r
+}\r
+\r
+static inline int _DEBUG_INIT() {\r
+       // NOTHING\r
+       return -1;\r
+}\r
+# endif\r
+#endif //watcomc\r
+\r
+void ShapeTest_(global_game_variables_t *gvar);\r
+#ifdef __WATCOMC__\r
+#ifdef __DEBUG_VL__\r
+spv_t ShowPalVarSync (spv_t *spv);\r
+void ShowPalVal (global_game_variables_t *gvar);\r
+#endif\r
+#endif\r
+\r
+#endif // _SRC_LIB_16_DBG\r