|
From: <syn...@us...> - 2009-04-08 11:32:42
|
Revision: 2983
http://clucene.svn.sourceforge.net/clucene/?rev=2983&view=rev
Author: synhershko
Date: 2009-04-08 11:32:26 +0000 (Wed, 08 Apr 2009)
Log Message:
-----------
Added shortcut macro for deletion of array and its contents without NULLifying the pointer (mainly used in destructors)
Modified Paths:
--------------
branches/lucene2_3_2/src/core/CLucene/debug/mem.h
Modified: branches/lucene2_3_2/src/core/CLucene/debug/mem.h
===================================================================
--- branches/lucene2_3_2/src/core/CLucene/debug/mem.h 2009-04-06 14:14:43 UTC (rev 2982)
+++ branches/lucene2_3_2/src/core/CLucene/debug/mem.h 2009-04-08 11:32:26 UTC (rev 2983)
@@ -50,6 +50,7 @@
//a shortcut for deleting a carray and all its contents
#define _CLDELETE_CARRAY_ALL(x) {if ( x!=NULL ){ for(int xcda=0;x[xcda]!=NULL;xcda++)_CLDELETE_CARRAY(x[xcda]);}_CLDELETE_ARRAY(x)};
+#define _CLDELETE_LCARRAY_ALL(x) {if ( x!=NULL ){ for(int xcda=0;x[xcda]!=NULL;xcda++)_CLDELETE_LCARRAY(x[xcda]);}_CLDELETE_LARRAY(x)};
#define _CLDELETE_CaARRAY_ALL(x) {if ( x!=NULL ){ for(int xcda=0;x[xcda]!=NULL;xcda++)_CLDELETE_CaARRAY(x[xcda]);}_CLDELETE_ARRAY(x)};
#define _CLDELETE_ARRAY_ALL(x) {if ( x!=NULL ){ for(int xcda=0;x[xcda]!=NULL;xcda++)_CLDELETE(x[xcda]);}_CLDELETE_ARRAY(x)};
#ifndef _CLDELETE_CaARRAY
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|