All pastes #459804 Raw Edit

Untitled

public text v1 · immutable
#459804 ·published 2007-04-26 18:17 UTC
rendered paste body
#if 1
//#ifdef NO_BOMBING_MACROS
#  define BU_CKMAG(_ptr, _magic, _str) {;}
#  define BU_CKMAG_TCL(_interp, _ptr, _magic, _str) {;}
#else
#  define BU_CKMAG(_ptr, _magic, _str)  \
        if( !(_ptr) || ( ((long)(_ptr)) & (sizeof(long)-1) ) || \
            *((unsigned long *)(_ptr)) != (unsigned long)(_magic) )  { \
                bu_badmagic( (long *)(_ptr), (unsigned long)_magic, _str, __FILE
        }
#  define BU_CKMAG_TCL(_interp, _ptr, _magic, _str)     \
        if( !(_ptr) || ( ((long)(_ptr)) & (sizeof(long)-1) ) || \
             *((long *)(_ptr)) != (_magic) )  { \
                bu_badmagic_tcl( (_interp), (long *)(_ptr), (unsigned long)_magi
                return TCL_ERROR; \
        }