Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
2.0 KiB

  1. /* -----------------------------------------------------------------------------
  2. * See the LICENSE file for information on copyright, usage and redistribution
  3. * of SWIG, and the README file for authors - http://www.swig.org/release.html.
  4. *
  5. * mzscheme.swg
  6. *
  7. * SWIG Configuration File for MzScheme.
  8. * This file is parsed by SWIG before reading any other interface file.
  9. * ----------------------------------------------------------------------------- */
  10. /* Include headers */
  11. %runtime "swigrun.swg" // Common C API type-checking code
  12. %runtime "mzrun.swg"
  13. %define SWIG_APPEND_VALUE(value)
  14. values[lenv++] = value
  15. %enddef
  16. /* Definitions */
  17. #define SWIG_malloc(size) swig_malloc(size, FUNC_NAME)
  18. #define SWIG_free(mem) free(mem)
  19. #define SWIG_convert_short(o) \
  20. SWIG_convert_integer(o, - (1 << (8 * sizeof(short) - 1)), \
  21. (1 << (8 * sizeof(short) - 1)) - 1, \
  22. FUNC_NAME, $argnum-1, argc, argv)
  23. #define SWIG_convert_int(o) \
  24. SWIG_convert_integer(o, INT_MIN, INT_MAX, \
  25. FUNC_NAME, $argnum-1, argc, argv)
  26. #define SWIG_convert_long(o) \
  27. SWIG_convert_integer(o, LONG_MIN, LONG_MAX, \
  28. FUNC_NAME, $argnum-1, argc, argv)
  29. #define SWIG_convert_unsigned_short(o) \
  30. SWIG_convert_unsigned_integer(o, 0, \
  31. (1 << (8 * sizeof(short))) - 1, \
  32. FUNC_NAME, $argnum-1, argc, argv)
  33. #define SWIG_convert_unsigned_int(o) \
  34. SWIG_convert_unsigned_integer(o, 0, UINT_MAX, \
  35. FUNC_NAME, $argnum-1, argc, argv)
  36. #define SWIG_convert_unsigned_long(o) \
  37. SWIG_convert_unsigned_integer(o, 0, ULONG_MAX, \
  38. FUNC_NAME, $argnum-1, argc, argv)
  39. /* Guile compatibility kludges */
  40. #define SCM_VALIDATE_VECTOR(argnum, value) (void)0
  41. #define SCM_VALIDATE_LIST(argnum, value) (void)0
  42. /* Read in standard typemaps. */
  43. %include <typemaps.i>
  44. %insert(init) "swiginit.swg"
  45. %init %{
  46. Scheme_Object *scheme_reload(Scheme_Env *env) {
  47. Scheme_Env *menv = SWIG_MZSCHEME_CREATE_MENV(env);
  48. SWIG_InitializeModule((void *) env);
  49. %}