2
%module(directors="1") director_extend
6
virtual int dummy() // Had to remove virtual to work
8
return $self->getFooBar();
13
#ifndef SWIG_DIRECTORS
14
// dummy definition for non-director languages
23
size_t ExceptionMethod()
25
// Check positioning of director code in wrapper file
26
// Below is what we really want to test, but director exceptions vary too much across across all languages
27
// throw Swig::DirectorException("DirectorException was not in scope!!");
28
// Instead check definition of Director class as that is defined in the same place as DirectorException (director.swg)
29
size_t size = sizeof(Swig::Director);
40
virtual ~SpObject() {}
42
int getFooBar() const {
47
// Do NOT define the assignment operator
48
SpObject& operator=(const SpObject& rhs);
50
// This class can not be copied. Do NOT define the copy Constructor.
51
SpObject (const SpObject& rhs);