Revision: 70453
          http://sourceforge.net/p/brlcad/code/70453
Author:   brlcad
Date:     2017-11-29 04:09:58 +0000 (Wed, 29 Nov 2017)
Log Message:
-----------
was problematic if the equation contains a modulo.  stash to string and print 
that instead.

Modified Paths:
--------------
    brlcad/trunk/include/bu/defines.h

Modified: brlcad/trunk/include/bu/defines.h
===================================================================
--- brlcad/trunk/include/bu/defines.h   2017-11-29 03:56:34 UTC (rev 70452)
+++ brlcad/trunk/include/bu/defines.h   2017-11-29 04:09:58 UTC (rev 70453)
@@ -183,8 +183,9 @@
 #else
 #  define BU_ASSERT(_equation) \
     if (UNLIKELY(!(_equation))) { \
-       bu_log("BU_ASSERT(" #_equation ") failed, file %s, line %d\n", \
-              __FILE__, __LINE__); \
+       const char *_equation_buf = #_equation; \
+       bu_log("BU_ASSERT(%s), failed, file %s, line %d\n", \
+              _equation_buf, __FILE__, __LINE__); \
        bu_bomb("BU_ASSERT failure\n"); \
     }
 #endif

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to