(svn r15743) -Codechange: move the definitions of some fake squirrel types to their own file.

This commit is contained in:
yexo
2009-03-16 17:30:49 +00:00
parent b4fb14693a
commit cd73406b9c
5 changed files with 26 additions and 8 deletions

View File

@@ -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 */