added everything

This commit is contained in:
Metario
2017-04-17 06:17:10 -06:00
commit 9c6ff74f19
6121 changed files with 1625704 additions and 0 deletions

18
engine/util/safeDelete.h Executable file
View File

@@ -0,0 +1,18 @@
//-----------------------------------------------------------------------------
// Torque Shader Engine
// Copyright (C) GarageGames.com, Inc.
//-----------------------------------------------------------------------------
// Utility macros. We clobber to enforce our semantics!
#undef SAFE_DELETE
#define SAFE_DELETE(a) if( (a) != NULL ) delete (a); (a) = NULL;
#undef SAFE_DELETE_ARRAY
#define SAFE_DELETE_ARRAY(a) if( (a) != NULL ) delete [] (a); (a) = NULL;
#undef SAFE_DELETE_OBJECT
#define SAFE_DELETE_OBJECT(a) if( (a) != NULL ) (a)->deleteObject(); (a) = NULL;
#undef SAFE_FREE
#define SAFE_FREE(a) if( (a) != NULL ) dFree (a); (a) = NULL;