mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-14 03:37:16 +01:00
f4a11ef825
Consolidated and simplified the module API system. Various other fixes and improvements.
74 lines
2.6 KiB
C
74 lines
2.6 KiB
C
//
|
|
// Sqrat: Squirrel C++ Binding Utility
|
|
//
|
|
|
|
//
|
|
// Copyright (c) 2009 Brandon Jones
|
|
//
|
|
// This software is provided 'as-is', without any express or implied
|
|
// warranty. In no event will the authors be held liable for any damages
|
|
// arising from the use of this software.
|
|
//
|
|
// Permission is granted to anyone to use this software for any purpose,
|
|
// including commercial applications, and to alter it and redistribute it
|
|
// freely, subject to the following restrictions:
|
|
//
|
|
// 1. The origin of this software must not be misrepresented; you must not
|
|
// claim that you wrote the original software. If you use this software
|
|
// in a product, an acknowledgment in the product documentation would be
|
|
// appreciated but is not required.
|
|
//
|
|
// 2. Altered source versions must be plainly marked as such, and must not be
|
|
// misrepresented as being the original software.
|
|
//
|
|
// 3. This notice may not be removed or altered from any source
|
|
// distribution.
|
|
//
|
|
|
|
/*! \mainpage Sqrat Main Page
|
|
*
|
|
* \section intro_sec Introduction
|
|
*
|
|
* Sqrat is a C++ library for Squirrel that facilitates exposing classes and other native functionality to Squirrel scripts. It models the underlying Squirrel API closely to give access to a wider range of functionality than other binding libraries. In addition to the binding library, Sqrat features a threading library and a module import library.
|
|
*
|
|
* \section install_sec Installation
|
|
*
|
|
* Sqrat only contains C++ headers so for installation you just need to copy the files in the include directory to some common header path.
|
|
*
|
|
* \section sec_faq Frequently Asked Questions
|
|
*
|
|
* Q: My application is crashing when I call sq_close. Why is this happening?<br>
|
|
* A: All Sqrat::Object instances and derived type instances must be destroyed before calling sq_close.
|
|
*
|
|
* \section discuss_sec Discussion and User Support
|
|
*
|
|
* Discussion about Sqrat happens at the Squirrel language forum, the Bindings section
|
|
* http://squirrel-lang.org/forums/default.aspx?g=topics&f=4
|
|
*
|
|
* \section bug_sec Bug Reporting
|
|
*
|
|
* Bug reports or feature enhancement requests and patches can be submitted at the SourceForge Sqrat site
|
|
* https://sourceforge.net/p/scrat/sqrat/
|
|
*
|
|
* You're invited to make documentation suggestions for Sqrat. Together, we can make Sqrat as easy to understand as possible!
|
|
*/
|
|
|
|
#if !defined(_SCRAT_MAIN_H_)
|
|
#define _SCRAT_MAIN_H_
|
|
|
|
#ifdef SQMOD_PLUGIN_API
|
|
#include <SqAPI.h>
|
|
#else
|
|
#include <squirrel.h>
|
|
#endif // SQMOD_PLUGIN_API
|
|
|
|
#include "sqrat/sqratTable.h"
|
|
#include "sqrat/sqratClass.h"
|
|
#include "sqrat/sqratFunction.h"
|
|
#include "sqrat/sqratConst.h"
|
|
#include "sqrat/sqratUtil.h"
|
|
#include "sqrat/sqratScript.h"
|
|
#include "sqrat/sqratArray.h"
|
|
|
|
#endif
|