diff options
Diffstat (limited to 'bindings/swig/swcom.i')
-rw-r--r-- | bindings/swig/swcom.i | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/bindings/swig/swcom.i b/bindings/swig/swcom.i new file mode 100644 index 0000000..90291cf --- /dev/null +++ b/bindings/swig/swcom.i @@ -0,0 +1,14 @@ +%{ +#include "swcom.h" +%} + +%ignore sword::SWCom::SWCom; + +%include "swcom.h" + +%extend sword::SWCom { + /* C++-style cast */ + static sword::SWCom *castTo(sword::SWModule *o) { + return dynamic_cast<sword::SWCom*>(o); + } +}
\ No newline at end of file |