Ignore:
Timestamp:
Sep 17, 2020, 11:52:16 PM (5 years ago)
Author:
bird
Message:

kash: Use kHlpAssert instead of assert.h (debugger stops on the assertion rather than at exit process code).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kash/shheap.c

    r3451 r3477  
    3232#include <string.h>
    3333#include <stdlib.h>
    34 #include <assert.h>
    3534#include "shinstance.h"
    3635
     
    105104# define SHHEAP_CHECK()         shheap_check()
    106105# define SHHEAP_CHECK_2()       shheap_check()
    107 # define SHHEAP_ASSERT(expr)    assert(expr)
     106# define SHHEAP_ASSERT(expr)    kHlpAssert(expr)
    108107# define SHHEAP_POISON_PSH(p,v) ((shinstance *)(v))
    109108# define SHHEAP_POISON_NULL(v)  ((void *)(v))
Note: See TracChangeset for help on using the changeset viewer.