sqrat.h 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. //
  2. // Sqrat: Squirrel C++ Binding Utility
  3. //
  4. //
  5. // Copyright (c) 2009 Brandon Jones
  6. //
  7. // This software is provided 'as-is', without any express or implied
  8. // warranty. In no event will the authors be held liable for any damages
  9. // arising from the use of this software.
  10. //
  11. // Permission is granted to anyone to use this software for any purpose,
  12. // including commercial applications, and to alter it and redistribute it
  13. // freely, subject to the following restrictions:
  14. //
  15. // 1. The origin of this software must not be misrepresented; you must not
  16. // claim that you wrote the original software. If you use this software
  17. // in a product, an acknowledgment in the product documentation would be
  18. // appreciated but is not required.
  19. //
  20. // 2. Altered source versions must be plainly marked as such, and must not be
  21. // misrepresented as being the original software.
  22. //
  23. // 3. This notice may not be removed or altered from any source
  24. // distribution.
  25. //
  26. /*! \mainpage Sqrat Main Page
  27. *
  28. * \section intro_sec Introduction
  29. *
  30. * 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.
  31. *
  32. * \section install_sec Installation
  33. *
  34. * Sqrat only contains C++ headers so for installation you just need to copy the files in the include directory to some common header path.
  35. *
  36. * \section sec_faq Frequently Asked Questions
  37. *
  38. * Q: My application is crashing when I call sq_close. Why is this happening?<br>
  39. * A: All Sqrat::Object instances and derived type instances must be destroyed before calling sq_close.
  40. *
  41. * \section discuss_sec Discussion and User Support
  42. *
  43. * Discussion about Sqrat happens at the Squirrel language forum, the Bindings section
  44. * http://squirrel-lang.org/forums/default.aspx?g=topics&f=4
  45. *
  46. * \section bug_sec Bug Reporting
  47. *
  48. * Bug reports or feature enhancement requests and patches can be submitted at the SourceForge Sqrat site
  49. * https://sourceforge.net/p/scrat/sqrat/
  50. *
  51. * You're invited to make documentation suggestions for Sqrat. Together, we can make Sqrat as easy to understand as possible!
  52. */
  53. #if !defined(_SCRAT_MAIN_H_)
  54. #define _SCRAT_MAIN_H_
  55. #include <squirrel.h>
  56. #include "sqrat/sqratTable.h"
  57. #include "sqrat/sqratClass.h"
  58. #include "sqrat/sqratFunction.h"
  59. #include "sqrat/sqratConst.h"
  60. #include "sqrat/sqratUtil.h"
  61. #include "sqrat/sqratScript.h"
  62. #include "sqrat/sqratArray.h"
  63. #endif