Revision: 68980
          http://sourceforge.net/p/brlcad/code/68980
Author:   brlcad
Date:     2016-10-04 12:44:12 +0000 (Tue, 04 Oct 2016)
Log Message:
-----------
mark bu_badmagic as not returning and document it as such

Modified Paths:
--------------
    brlcad/trunk/include/bu/log.h
    brlcad/trunk/include/bu/magic.h

Modified: brlcad/trunk/include/bu/log.h
===================================================================
--- brlcad/trunk/include/bu/log.h       2016-10-04 12:41:19 UTC (rev 68979)
+++ brlcad/trunk/include/bu/log.h       2016-10-04 12:44:12 UTC (rev 68980)
@@ -177,7 +177,7 @@
  * This routine should never return unless there is a BU_SETJUMP()
  * handler registered.
  */
-BU_EXPORT extern void bu_bomb(const char *str)_BU_ATTR_ANALYZE_NORETURN 
_BU_ATTR_NORETURN;
+BU_EXPORT extern void bu_bomb(const char *str) _BU_ATTR_ANALYZE_NORETURN 
_BU_ATTR_NORETURN;
 
 /**
  * Semi-graceful termination of the application that doesn't cause a

Modified: brlcad/trunk/include/bu/magic.h
===================================================================
--- brlcad/trunk/include/bu/magic.h     2016-10-04 12:41:19 UTC (rev 68979)
+++ brlcad/trunk/include/bu/magic.h     2016-10-04 12:44:12 UTC (rev 68980)
@@ -245,9 +245,11 @@
 
 
 /**
- *  Support routine for BU_CKMAG macro.
+ * This function is called when there is something wrong with a
+ * pointer.  It's primarily a support routine for BU_CKMAG macro, but
+ * may be used elsewhere.  This function never returns.
  */
-BU_EXPORT extern void bu_badmagic(const uint32_t *ptr, uint32_t magic, const 
char *str, const char *file, int line) _BU_ATTR_ANALYZE_NORETURN;
+BU_EXPORT extern void bu_badmagic(const uint32_t *ptr, uint32_t magic, const 
char *str, const char *file, int line) _BU_ATTR_ANALYZE_NORETURN 
_BU_ATTR_NORETURN;
 
 
 /** @brief Routines involved with handling "magic numbers" used to identify 
various in-memory data structures. */

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to