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.

91 lines
3.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. * 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
  9. * class. Enums declared within a C++ class were wrapped by constant integers
  10. * in the C# proxy class.
  11. * ----------------------------------------------------------------------------- */
  12. // const enum SWIGTYPE & typemaps
  13. %typemap(ctype) const enum SWIGTYPE & "int"
  14. %typemap(imtype) const enum SWIGTYPE & "int"
  15. %typemap(cstype) 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 = *$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) const enum SWIGTYPE & "$input = $1_name;"
  24. %typemap(csdirectorin) const enum SWIGTYPE & "$iminput"
  25. %typemap(csdirectorout) const enum SWIGTYPE & "$cscall"
  26. %typecheck(SWIG_TYPECHECK_INT32) const enum SWIGTYPE & ""
  27. %typemap(throws, canthrow=1) const enum SWIGTYPE &
  28. %{ (void)$1;
  29. SWIG_CSharpSetPendingException(SWIG_CSharpApplicationException, "C++ $1_type exception thrown");
  30. return $null; %}
  31. %typemap(csin) const enum SWIGTYPE & "$csinput"
  32. %typemap(csout, excode=SWIGEXCODE) const enum SWIGTYPE & {
  33. int ret = $imcall;$excode
  34. return ret;
  35. }
  36. %typemap(csvarout, excode=SWIGEXCODE2) const enum SWIGTYPE & %{
  37. get {
  38. int ret = $imcall;$excode
  39. return ret;
  40. } %}
  41. // enum SWIGTYPE typemaps
  42. %typemap(ctype) enum SWIGTYPE "int"
  43. %typemap(imtype) enum SWIGTYPE "int"
  44. %typemap(cstype) enum SWIGTYPE "int"
  45. %typemap(in) enum SWIGTYPE %{ $1 = ($1_ltype)$input; %}
  46. %typemap(out) enum SWIGTYPE %{ $result = $1; %}
  47. %typemap(directorout) enum SWIGTYPE %{ $result = ($1_ltype)$input; %}
  48. %typemap(directorin) enum SWIGTYPE "$input = $1;"
  49. %typemap(csdirectorin) enum SWIGTYPE "$iminput"
  50. %typemap(csdirectorout) enum SWIGTYPE "$cscall"
  51. %typecheck(SWIG_TYPECHECK_INT32) enum SWIGTYPE ""
  52. %typemap(throws, canthrow=1) enum SWIGTYPE
  53. %{ (void)$1;
  54. SWIG_CSharpSetPendingException(SWIG_CSharpApplicationException, "C++ $1_type exception thrown");
  55. return $null; %}
  56. %typemap(csin) enum SWIGTYPE "$csinput"
  57. %typemap(csout, excode=SWIGEXCODE) enum SWIGTYPE {
  58. int ret = $imcall;$excode
  59. return ret;
  60. }
  61. %typemap(csvarout, excode=SWIGEXCODE2) enum SWIGTYPE %{
  62. get {
  63. int ret = $imcall;$excode
  64. return ret;
  65. } %}
  66. %typemap(csbase) enum SWIGTYPE ""
  67. %typemap(csclassmodifiers) enum SWIGTYPE ""
  68. %typemap(cscode) enum SWIGTYPE ""
  69. %typemap(csimports) enum SWIGTYPE ""
  70. %typemap(csinterfaces) enum SWIGTYPE ""
  71. %typemap(csbody) enum SWIGTYPE ""
  72. %csenum(simple);