__Destruct.h

Go to the documentation of this file.
00001 /*
00002  * $Id: __Destruct.h 562 2007-12-02 08:04:16Z mindstorm2600 $
00003  *
00004  * X-VR2 
00005  * 
00006  * Copyright (C) Juan V. Guerrero 2007
00007  * 
00008  * Juan V. Guerrero <mindstorm2600@users.sourceforge.net>
00009  * 
00010  * This program is free software, distributed under the terms of
00011  * the GNU General Public License Version 2. See the LICENSE file
00012  * at the top of the source tree.
00013  */
00014 #ifndef __XVR2_OBJECT_H__
00015 #error "Don't include this file directly, instead include xvr2/Object.h"
00016 #endif
00017 
00018 #ifndef ____XVR2_DESTRUCT_H__
00019 #define ____XVR2_DESTRUCT_H__
00020 namespace xvr2{
00027 template<class __ttype_x>
00028 inline void xvr2_delete(__ttype_x &ptr){
00029         delete ptr;
00030         ptr = 0;
00031 }
00032 
00039 template<class __ttype_y>
00040 inline void xvr2_delete_array(__ttype_y &array){
00041         delete[] array;
00042         array = 0;
00043 }
00044 
00045 
00046 }
00047 #endif

Generated on Fri Jun 20 22:55:47 2008 for X-VR2 SDK by  doxygen 1.5.5