Browse Source

Added Varptr fudge for heap objects.

Mark Sibly 8 years ago
parent
commit
ae054c1d0d
1 changed files with 4 additions and 2 deletions
  1. 4 2
      modules/monkey/native/bbgc.h

+ 4 - 2
modules/monkey/native/bbgc.h

@@ -260,12 +260,14 @@ template<class T> struct bbGCVar{
 	operator T*()const{
 		return _ptr;
 	}
+	
+	T **operator&(){
+		return &_ptr;
+	}
 };
 
 template<class T> void bbGCMark( T const& ){
 }
-//inline void bbGCMark(...){
-//}
 
 template<class T> void bbGCMark( const bbGCVar<T> &v ){
 	bbGCMark( v._ptr );