~ubuntu-branches/ubuntu/edgy/swig1.3/edgy

« back to all changes in this revision

Viewing changes to Lib/csharp/enums.swg

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-12-05 01:16:04 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051205011604-ygx904it6413k3go
Tags: 1.3.27-1ubuntu1
Resynchronise with Debian again, for the new subversion packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
%typecheck(SWIG_TYPECHECK_POINTER) const enum SWIGTYPE & ""
17
17
 
18
 
%typemap(throws) const enum SWIGTYPE & %{
 
18
%typemap(throws, canthrow=1) const enum SWIGTYPE & %{
19
19
  (void)$1;
20
 
  SWIG_CSharpThrowException(SWIG_CSharpException, "C++ $1_type exception thrown");
 
20
  SWIG_CSharpSetPendingException(SWIG_CSharpApplicationException, "C++ $1_type exception thrown");
 
21
  return $null;
21
22
%}
22
23
 
23
24
%typemap(csin) const enum SWIGTYPE & "(int)$csinput"
24
 
%typemap(csout) const enum SWIGTYPE & {
25
 
    return ($*csclassname)$imcall;
 
25
%typemap(csout, excode=SWIGEXCODE) const enum SWIGTYPE & {
 
26
    $*csclassname ret = ($*csclassname)$imcall;$excode
 
27
    return ret;
26
28
  }
27
29
 
28
 
%typemap(csvarout) const enum SWIGTYPE & %{
 
30
%typemap(csvarout, excode=SWIGEXCODE2) const enum SWIGTYPE & %{
29
31
    get {
30
 
      return ($*csclassname)$imcall;
 
32
      $*csclassname ret = ($*csclassname)$imcall;$excode
 
33
      return ret;
31
34
    } %}
32
35
 
33
36
 
41
44
 
42
45
%typecheck(SWIG_TYPECHECK_POINTER) enum SWIGTYPE ""
43
46
 
44
 
%typemap(throws) enum SWIGTYPE %{
 
47
%typemap(throws, canthrow=1) enum SWIGTYPE %{
45
48
  (void)$1;
46
 
  SWIG_CSharpThrowException(SWIG_CSharpException, "C++ $1_type exception thrown");
 
49
  SWIG_CSharpSetPendingException(SWIG_CSharpApplicationException, "C++ $1_type exception thrown");
 
50
  return $null;
47
51
%}
48
52
 
49
53
%typemap(csin) enum SWIGTYPE "(int)$csinput"
50
 
%typemap(csout) enum SWIGTYPE {
51
 
    return ($csclassname)$imcall;
 
54
%typemap(csout, excode=SWIGEXCODE) enum SWIGTYPE {
 
55
    $csclassname ret = ($csclassname)$imcall;$excode
 
56
    return ret;
52
57
  }
53
58
 
54
 
%typemap(csvarout) enum SWIGTYPE %{
 
59
%typemap(csvarout, excode=SWIGEXCODE2) enum SWIGTYPE %{
55
60
    get {
56
 
      return ($csclassname)$imcall;
 
61
      $csclassname ret = ($csclassname)$imcall;$excode
 
62
      return ret;
57
63
    } %}
58
64
 
59
65
%typemap(csbase)           enum SWIGTYPE ""