checkpoint pragma support. Includes more cleanup of script enviroment storage to keep the env settings in the base and only the per language state in ScriptC.
diff --git a/rsObjectBase.h b/rsObjectBase.h
index 7761e49..ca7acda 100644
--- a/rsObjectBase.h
+++ b/rsObjectBase.h
@@ -47,6 +47,16 @@
mRef = NULL;
}
+ ObjectBaseRef(const ObjectBaseRef &ref) {
+ mRef = ref.get();
+ mRef->incRef();
+ }
+
+ ObjectBaseRef(T *ref) {
+ mRef = ref;
+ ref->incRef();
+ }
+
~ObjectBaseRef() {
clear();
}
@@ -77,9 +87,6 @@
protected:
T * mRef;
-private:
- ObjectBaseRef(const ObjectBaseRef &) {};
-
};