Skip to content

Commit

Permalink
enable director for directordotfeatures
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed May 31, 2012
1 parent 86c3eaa commit ea40ed5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/interfaces/modular/Features.i
Expand Up @@ -20,6 +20,15 @@
/* These functions return new Objects */
%newobject get_transposed();

#ifdef USE_SWIG_DIRECTORS
%feature("director") shogun::CDirectorDotFeatures;
%feature("director:except") {
if ($error != NULL) {
throw Swig::DirectorMethodException();
}
}
#endif

/* Remove C Prefix */
%rename(Alphabet) CAlphabet;
%rename(Features) CFeatures;
Expand Down

0 comments on commit ea40ed5

Please sign in to comment.