EXPORT void *operator new[](std::size_t size) throw(std::bad_alloc) { void* result = doAllocate(size); if (result == NULL) throw std::bad_alloc(); return result; }
void LongRegisterString::allocate(Location l) { theSIC->update_number_of_saved_nonvolatile_registers_for(l); doAllocate(l); }
void Organ::allocateNet(double proportion, double netCarbohydrates) { propAllocatedPerPlant = proportion; double myShare = proportion*netCarbohydrates; double totalCarbohydrates = myShare*CH2ORequirement; doAllocate(totalCarbohydrates, myShare); }
void Organ::allocate(double proportion, double totalCarbohydrates) { propAllocatedPerPlant = proportion; double myShare = proportion*totalCarbohydrates; double netCarbohydrates = myShare/CH2ORequirement; doAllocate(myShare, netCarbohydrates); }
void LongRegisterString::allocate(Location l) { doAllocate(l); }
EXPORT void *operator new[](std::size_t size, const std::nothrow_t&) throw() { return doAllocate(size); }