summaryrefslogtreecommitdiff
path: root/src/script/fake_squirrel_types.hpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-03-16 17:30:49 +0000
committeryexo <yexo@openttd.org>2009-03-16 17:30:49 +0000
commitcd73406b9c0ff0891265dbe85681f7738608e173 (patch)
tree9da67ee4ea25da4d09c107f647fd9620d713ca9f /src/script/fake_squirrel_types.hpp
parentb4fb14693a7412ac8f0904f0ffad508a12e87375 (diff)
downloadopenttd-cd73406b9c0ff0891265dbe85681f7738608e173.tar.xz
(svn r15743) -Codechange: move the definitions of some fake squirrel types to their own file.
Diffstat (limited to 'src/script/fake_squirrel_types.hpp')
-rw-r--r--src/script/fake_squirrel_types.hpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/script/fake_squirrel_types.hpp b/src/script/fake_squirrel_types.hpp
new file mode 100644
index 000000000..ef25008f1
--- /dev/null
+++ b/src/script/fake_squirrel_types.hpp
@@ -0,0 +1,16 @@
+/* $Id$ */
+
+/** @file fake_squirrel_types.hpp Provides definitions for some squirrel types to prevent including squirrel.h in header files.*/
+
+#ifndef FAKE_SQUIRREL_TYPES_HPP
+#define FAKE_SQUIRREL_TYPES_HPP
+
+#ifndef _SQUIRREL_H_
+/* Life becomes easier when we can tell about a function it needs the VM, but
+ * without really including 'squirrel.h'. */
+typedef struct SQVM *HSQUIRRELVM; //!< Pointer to Squirrel Virtual Machine.
+typedef int SQInteger; //!< Squirrel Integer.
+typedef struct SQObject HSQOBJECT; //!< Squirrel Object (fake declare)
+#endif
+
+#endif /* FAKE_SQUIRREL_TYPES_HPP */