First round of director mods

- Removed asserts
- The unused __DIRECTOR__ base class default constructor removed. I've used the conventional approach of having no default constructor rather than a private one (declaring it private doesn't serve any useful purpose when this constructor is not wanted).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5132 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2003-09-20 15:11:38 +00:00
commit a7933a75b0
7 changed files with 0 additions and 29 deletions

View file

@ -18,8 +18,6 @@ class __DIRECTOR__ {
private:
/* pointer to java virtual machine */
JavaVM *__jvm;
/* the default constructor should not be called */
__DIRECTOR__();
protected:
/* pointer to the wrapped java object */
@ -27,13 +25,11 @@ protected:
/* Acquire Java VM environment from Java VM */
JNIEnv *__acquire_jenv() const {
JNIEnv *env;
assert(__jvm);
__jvm->AttachCurrentThread((void **) &env, NULL);
return env;
}
public:
/* Default constructor */
__DIRECTOR__(JNIEnv *jenv):
__jvm((JavaVM *) NULL),
__self(NULL)

View file

@ -36,7 +36,6 @@
#include <jni.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
%}
%insert(runtime) %{