mirror of
https://github.com/zeldaret/tp
synced 2026-05-23 06:54:28 -04:00
Resource (#2939)
* matching Do_destroy from resource.cpp * add missing constants from `float.c` * add numeric_limits for double * set TObject::reset for each version in stb.cpp * improve debug matching
This commit is contained in:
@@ -116,12 +116,11 @@ JMessage::TResource* JMessage::TResourceContainer::TCResource::Do_create() {
|
||||
}
|
||||
|
||||
void JMessage::TResourceContainer::TCResource::Do_destroy(JMessage::TResource* pResource) {
|
||||
#if DEBUG
|
||||
#if DEBUG
|
||||
delete pResource;
|
||||
#else
|
||||
// Fake Match - extra null comparison when not doing the conversion
|
||||
delete (void*)pResource;
|
||||
#endif
|
||||
#else
|
||||
operator delete(pResource);
|
||||
#endif
|
||||
}
|
||||
|
||||
JMessage::TResourceContainer::TResourceContainer() : encodingType_(0), pfnParseCharacter_(NULL) {}
|
||||
|
||||
Reference in New Issue
Block a user