req/sqlite3/ext/sqlite3_api/sqlite3_api_wrap.c
static void SWIG_RubyAddTracking(void* ptr, VALUE object) {
	/* In a Ruby hash table we store the pointer and
	the associated Ruby object.  The trick here is
	that we cannot store the Ruby object directly - if
	we do then it cannot be garbage collected.  So
	instead we typecast it as a unsigned long and
	convert it to a Ruby number object.*/

	/* Get a reference to the pointer as a Ruby number */
	VALUE key = SWIG_RubyPtrToReference(ptr);

	/* Get a reference to the Ruby object as a Ruby number */
	VALUE value = SWIG_RubyObjectToReference(object);

  /* Store the mapping to the global hash table. */
	rb_hash_aset(swig_ruby_trackings, key, value);
}
/* Add a Tracking from a C/C++ struct to a Ruby object */
Add a Tracking from a C/C++ struct to a Ruby object
Add a Tracking from a C / C ++ struct to a Ruby object
static void SWIG_RubyAddTracking(void* ptr, VALUE object) {
	VALUE key = SWIG_RubyPtrToReference(ptr);
	VALUE value = SWIG_RubyObjectToReference(object);
	rb_hash_aset(swig_ruby_trackings, key, value);
}
static void SWIG_RubyAddTracking ( void * ptr , VALUE object ) { VALUE key = SWIG_RubyPtrToReference ( ptr ) ; VALUE value = SWIG_RubyObjectToReference ( object ) ; rb_hash_aset ( swig_ruby_trackings , key , value ) ; }
Add a Tracking from a C/C++ struct to a Ruby object
Add a Tracking from a C / C ++ struct to a Ruby object
/* In a Ruby hash table we store the pointer and
	the associated Ruby object.  The trick here is
	that we cannot store the Ruby object directly - if
	we do then it cannot be garbage collected.  So
	instead we typecast it as a unsigned long and
	convert it to a Ruby number object.*/ /* Get a reference to the pointer as a Ruby number */ /* Get a reference to the Ruby object as a Ruby number */ /* Store the mapping to the global hash table. */