library/src/garbage_collection/BP_MemoryGarbageCollector.cc
// garbage collection friendly version of bpbpstrdup
garbage collection friendly version of bpbpstrdup
garbage collection friendly version of bpbpstrdup
char * BP_strdup(P_BP_GARBAGE_COLLECTOR_DATA gc, char *msg, char *str)
{
	char * new_ptr = (char *) bpstrdup(str);
	BP_GarbageCollectorLogChunk(gc, NULL, new_ptr, bpstrlen(new_ptr), BP_GARBAGE_COLLECTOR_DATA_ALLOC_REALLOC);
	return new_ptr;
}
char * BP_strdup ( P_BP_GARBAGE_COLLECTOR_DATA gc , char * msg , char * str ) { char * new_ptr = ( char * ) bpstrdup ( str ) ; BP_GarbageCollectorLogChunk ( gc , NULL , new_ptr , bpstrlen ( new_ptr ) , BP_GARBAGE_COLLECTOR_DATA_ALLOC_REALLOC ) ; return new_ptr ; }
garbage collection friendly version of bpbpstrdup
garbage collection friendly version of bpbpstrdup
// allocate new pointer // log the garbage collector chunk (add list item) // return pointer