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

« back to all changes in this revision

Viewing changes to Lib/python/director.swg

  • Committer: Bazaar Package Importer
  • Author(s): Benjamin Drung
  • Date: 2009-11-15 14:00:28 UTC
  • mfrom: (1.2.9 upstream) (2.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091115140028-me7amr2rie8zz1xn
Tags: 1.3.40-2ubuntu1
* Merge from Debian testing (LP: #356529), remaining changes:
  - Drop libchicken-dev from the build-depends (it's in universe)
  - Remove Pike from package description and from configure flags
  - drop "--without-mzscheme", we don't have it in our build-depends
  - use php-config5
  - Clean Runtime/ as well.
  - debian/rules (clean): Remove Lib/ocaml/swigp4.ml.
* debian/rules: Remove hardcoded python version.
* Remove upper limit for python from Build-Depends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
 
48
48
/*
49
49
  Use -DSWIG_DIRECTOR_STATIC if you prefer to avoid the use of the
50
 
  'Swig' namespace. This could be usefull for multi-modules projects.
 
50
  'Swig' namespace. This could be useful for multi-modules projects.
51
51
*/
52
52
#ifdef SWIG_DIRECTOR_STATIC
53
53
/* Force anonymous (static) namespace */
107
107
  /* memory handler */
108
108
  struct GCItem 
109
109
  {
110
 
    virtual ~GCItem() = 0;
 
110
    virtual ~GCItem() {}
111
111
 
112
112
    virtual int get_own() const
113
113
    {
115
115
    }
116
116
  };
117
117
 
118
 
  GCItem::~GCItem()
119
 
  {
120
 
  }
121
 
 
122
118
  struct GCItem_var
123
119
  {
124
120
    GCItem_var(GCItem *item = 0) : _item(item)
212
208
        swig_msg += msg;
213
209
      }
214
210
      if (!PyErr_Occurred()) {
215
 
        swig_msg.insert(0, ": ");
216
211
        PyErr_SetString(error, getMessage());
217
 
      } else {
218
 
        SWIG_Python_AddErrorMsg(getMessage());
219
212
      }
220
213
      SWIG_PYTHON_THREAD_END_BLOCK; 
221
214
    }