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.

74 lines
2.7 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. * enumsimple.swg
  6. *
  7. * This file provides backwards compatible enum wrapping. SWIG versions 1.3.21
  8. * and earlier wrapped global enums with constant integers in the module class
  9. * or Constants interface. Enums declared within a C++ class were wrapped by
  10. * constant integers in the Java proxy class.
  11. * ----------------------------------------------------------------------------- */
  12. // const enum SWIGTYPE & typemaps
  13. %typemap(jni) const enum SWIGTYPE & "jint"
  14. %typemap(jtype) const enum SWIGTYPE & "int"
  15. %typemap(jstype) const enum SWIGTYPE & "int"
  16. %typemap(in) const enum SWIGTYPE & ($*1_ltype temp)
  17. %{ temp = ($*1_ltype)$input;
  18. $1 = &temp; %}
  19. %typemap(out) const enum SWIGTYPE & %{ $result = (jint)*$1; %}
  20. %typemap(directorout,warning=SWIGWARN_TYPEMAP_THREAD_UNSAFE_MSG) const enum SWIGTYPE &
  21. %{ static $*1_ltype temp = ($*1_ltype)$input;
  22. $result = &temp; %}
  23. %typemap(directorin, descriptor="I") const enum SWIGTYPE & "$input = (jint)$1_name;"
  24. %typemap(javadirectorin) const enum SWIGTYPE & "$jniinput"
  25. %typemap(javadirectorout) const enum SWIGTYPE & "$javacall"
  26. %typecheck(SWIG_TYPECHECK_INT32) const enum SWIGTYPE & ""
  27. %typemap(throws) const enum SWIGTYPE &
  28. %{ (void)$1;
  29. SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "C++ $1_type exception thrown"); %}
  30. %typemap(javain) const enum SWIGTYPE & "$javainput"
  31. %typemap(javaout) const enum SWIGTYPE & {
  32. return $jnicall;
  33. }
  34. // enum SWIGTYPE typemaps
  35. %typemap(jni) enum SWIGTYPE "jint"
  36. %typemap(jtype) enum SWIGTYPE "int"
  37. %typemap(jstype) enum SWIGTYPE "int"
  38. %typemap(in) enum SWIGTYPE %{ $1 = ($1_ltype)$input; %}
  39. %typemap(out) enum SWIGTYPE %{ $result = (jint)$1; %}
  40. %typemap(directorout) enum SWIGTYPE %{ $result = ($1_ltype)$input; %}
  41. %typemap(directorin, descriptor="I") enum SWIGTYPE "$input = (jint) $1;"
  42. %typemap(javadirectorin) enum SWIGTYPE "$jniinput"
  43. %typemap(javadirectorout) enum SWIGTYPE "$javacall"
  44. %typecheck(SWIG_TYPECHECK_INT32) enum SWIGTYPE ""
  45. %typemap(throws) enum SWIGTYPE
  46. %{ (void)$1;
  47. SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "C++ $1_type exception thrown"); %}
  48. %typemap(javain) enum SWIGTYPE "$javainput"
  49. %typemap(javaout) enum SWIGTYPE {
  50. return $jnicall;
  51. }
  52. %typemap(javaclassmodifiers) enum SWIGTYPE ""
  53. %typemap(javabase) enum SWIGTYPE ""
  54. %typemap(javacode) enum SWIGTYPE ""
  55. %typemap(javaimports) enum SWIGTYPE ""
  56. %typemap(javainterfaces) enum SWIGTYPE ""
  57. %typemap(javabody) enum SWIGTYPE ""
  58. %javaenum(simple);