devassert.c 272 Bytes
Newer Older
hu's avatar
hu committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
#include "devassert.h"
#include "TYW_Config.h"




#if defined (DEV_ERROR_DETECT)
void DevAssert(int x)
{
    if (x)
    {

    }
    else
    {
        for (;;)
        {

        }
    }
}
#else

/* Assert macro does nothing */
#define DEV_ASSERT(x) ((void)0)

#endif