Some functions return a new instance of such containers, but instead we made a copy of them, without taking ownership of the original created by the function. Now we use a specific constructor taking ownership on the godot_* struct.
		
			
				
	
	
		
			18 lines
		
	
	
		
			306 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			306 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#ifndef WRAPPED_HPP
 | 
						|
#define WRAPPED_HPP
 | 
						|
 | 
						|
#include <gdnative/gdnative.h>
 | 
						|
 | 
						|
namespace godot {
 | 
						|
 | 
						|
// This is an internal base class used by the bindings. You should not need to access its members.
 | 
						|
class _Wrapped {
 | 
						|
public:
 | 
						|
	godot_object *_owner;
 | 
						|
	size_t _type_tag;
 | 
						|
};
 | 
						|
 | 
						|
} // namespace godot
 | 
						|
 | 
						|
#endif // WRAPPED_HPP
 |