MCPcopy Create free account
hub / github.com/MyGUI/mygui / allocate

Method allocate

UnitTests/TestApp/pugixml.cpp:6375–6390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6373 }
6374
6375 void* allocate(size_t size)
6376 {
6377 void* result = allocate_nothrow(size);
6378
6379 if (!result)
6380 {
6381 #ifdef PUGIXML_NO_EXCEPTIONS
6382 assert(error_handler);
6383 longjmp(*error_handler, 1);
6384 #else
6385 throw std::bad_alloc();
6386 #endif
6387 }
6388
6389 return result;
6390 }
6391
6392 void* reallocate(void* ptr, size_t old_size, size_t new_size)
6393 {

Callers 2

duplicate_stringFunction · 0.45
eval_string_concatMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected