// vector new operator - New operator used to allocate a vector memory block // from VLD's private heap. // // - size (IN): Size of the memory block to be allocated. // // - file (IN): The name of the file from which this function is being // called. // // - line (IN): The line number, in the above file, at which this function is // being called. // // Return Value: // // If the allocation succeeds, a pointer to the allocated memory block is // returned. If the allocation fails, NULL is returned. // void* operator new [] (size_t size, const char *file, int line) { return vldnew(size, file, line); }
// scalar new operator - New operator used to allocate a scalar memory block // from VLD's private heap. // // - size (IN): Size of the memory block to be allocated. // // - file (IN): The name of the file from which this function is being // called. // // - line (IN): The line number, in the above file, at which this function is // being called. // // Return Value: // // If the allocation succeeds, a pointer to the allocated memory block is // returned. If the allocation fails, NULL is returned. // void* operator new (unsigned int size, const char *file, int line) { return vldnew(size, file, line); }