Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / devtools / amd64 / share / swig / 1.3.26 / csharp / enumsimple.swg
CommitLineData
920dae64
AT
1/* -----------------------------------------------------------------------------
2 * This file provides backwards compatible enum wrapping. SWIG versions 1.3.21
3 * and earlier wrapped global enums with constant integers in the module
4 * class. Enums declared within a C++ class were wrapped by constant integers
5 * in the C# proxy class.
6 * ----------------------------------------------------------------------------- */
7
8// const enum SWIGTYPE & typemaps
9%typemap(ctype) const enum SWIGTYPE & "int"
10%typemap(imtype) const enum SWIGTYPE & "int"
11%typemap(cstype) const enum SWIGTYPE & "int"
12
13%typemap(in) const enum SWIGTYPE & ($*1_ltype temp)
14%{ temp = ($*1_ltype)$input;
15 $1 = &temp; %}
16%typemap(out) const enum SWIGTYPE & %{ $result = *$1; %}
17
18%typecheck(SWIG_TYPECHECK_INT32) const enum SWIGTYPE & ""
19
20%typemap(throws, canthrow=1) const enum SWIGTYPE & %{
21 (void)$1;
22 SWIG_CSharpSetPendingException(SWIG_CSharpApplicationException, "C++ $1_type exception thrown");
23 return $null;
24%}
25
26%typemap(csin) const enum SWIGTYPE & "$csinput"
27%typemap(csout, excode=SWIGEXCODE) const enum SWIGTYPE & {
28 int ret = $imcall;$excode
29 return ret;
30 }
31
32%typemap(csvarout, excode=SWIGEXCODE2) const enum SWIGTYPE & %{
33 get {
34 int ret = $imcall;$excode
35 return ret;
36 } %}
37
38
39// enum SWIGTYPE typemaps
40%typemap(ctype) enum SWIGTYPE "int"
41%typemap(imtype) enum SWIGTYPE "int"
42%typemap(cstype) enum SWIGTYPE "int"
43
44%typemap(in) enum SWIGTYPE %{ $1 = ($1_ltype)$input; %}
45%typemap(out) enum SWIGTYPE %{ $result = $1; %}
46
47%typecheck(SWIG_TYPECHECK_INT32) enum SWIGTYPE ""
48
49%typemap(throws, canthrow=1) enum SWIGTYPE %{
50 (void)$1;
51 SWIG_CSharpSetPendingException(SWIG_CSharpApplicationException, "C++ $1_type exception thrown");
52 return $null;
53%}
54
55%typemap(csin) enum SWIGTYPE "$csinput"
56%typemap(csout, excode=SWIGEXCODE) enum SWIGTYPE {
57 int ret = $imcall;$excode
58 return ret;
59 }
60
61%typemap(csvarout, excode=SWIGEXCODE2) enum SWIGTYPE %{
62 get {
63 int ret = $imcall;$excode
64 return ret;
65 } %}
66
67%typemap(csbase) enum SWIGTYPE ""
68%typemap(csclassmodifiers) enum SWIGTYPE ""
69%typemap(cscode) enum SWIGTYPE ""
70%typemap(csimports) enum SWIGTYPE ""
71%typemap(csinterfaces) enum SWIGTYPE ""
72
73%typemap(csbody) enum SWIGTYPE ""
74
75%csenum(simple);
76