Changeset 3477 for trunk/src/kash/var.c


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/var.c

    r3438 r3477  
    4141#endif
    4242
    43 #include <assert.h>
    4443#include <stddef.h>
    4544#include <stdlib.h>
     
    303302                                                } else
    304303                                                        break;
    305                                         assert(left < 256 /*whatever, just no rollover*/);
     304                                        kHlpAssert(left < 256 /*whatever, just no rollover*/);
    306305                                }
    307306                                *dst = *vsrc;
     
    336335
    337336                        dst->vp = find_var(psh, vsrc->vp->text, NULL, NULL);
    338                         assert(dst->vp);
     337                        kHlpAssert(dst->vp);
    339338
    340339                        *ppdst = dst;
Note: See TracChangeset for help on using the changeset viewer.