[opengtl-commits] [323] don' t include usefull code inside code that get remove when not in debug mode !

[ Thread Index | Date Index | More lists.tuxfamily.org/opengtl-commits Archives ]


Revision: 323
Author:   cyrille
Date:     2008-08-30 14:40:13 +0200 (Sat, 30 Aug 2008)

Log Message:
-----------
don't include usefull code inside code that get remove when not in debug mode !

Modified Paths:
--------------
    trunk/OpenGTL/OpenCTL/OpenCTL/compiler/Compiler.cpp


Modified: trunk/OpenGTL/OpenCTL/OpenCTL/compiler/Compiler.cpp
===================================================================
--- trunk/OpenGTL/OpenCTL/OpenCTL/compiler/Compiler.cpp	2008-08-30 12:31:47 UTC (rev 322)
+++ trunk/OpenGTL/OpenCTL/OpenCTL/compiler/Compiler.cpp	2008-08-30 12:40:13 UTC (rev 323)
@@ -57,6 +57,7 @@
 #include "GTLCore/Type.h"
 #include "GTLCore/Type_p.h"
 #include "GTLCore/Optimiser_p.h"
+#include "GTLCore/Macros_p.h"
 
 using namespace OpenCTL;
 
@@ -117,7 +118,9 @@
   }
   va_end(argp);
   GTLCore::Function* function = GTLCore::Function::Private::createExternalFunction( d->module, _name, _symbolName, retType, arguments );
-  OCTL_ASSERT( declareFunction(GTLCore::ScopedName("", _name), function) );
+  bool success = declareFunction(GTLCore::ScopedName("", _name), function);
+  OCTL_ASSERT( success );
+  UNUSED( success );
   d->functionsToDelete.push_back(function);
 }
 


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/