sqratimport.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // SqImport: Supports importing of squirrel modules
  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. #if !defined(_SQ_IMPORT_H_)
  27. #define _SQ_IMPORT_H_
  28. #include <squirrel.h>
  29. #ifdef __cplusplus
  30. extern "C" {
  31. #endif
  32. SQUIRREL_API SQRESULT sqrat_import(HSQUIRRELVM v);
  33. SQUIRREL_API SQRESULT sqrat_register_importlib(HSQUIRRELVM v);
  34. #ifdef __cplusplus
  35. } /*extern "C"*/
  36. #endif
  37. #endif /*_SQ_IMPORT_H_*/