Changeset 3477 for trunk/src/kash/show.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/show.c

    r3444 r3477  
    4444#include <stdarg.h>
    4545#include <stdlib.h>
    46 #include <assert.h>
    4746
    4847#include "shell.h"
     
    293292        if (pos > sizeof(psh->tracebuf)) {
    294293                char *end;
    295                 assert(0);
     294                kHlpAssert(0);
    296295                end = memchr(psh->tracebuf, '\0', sizeof(psh->tracebuf));
    297296                pos = end ? end - &psh->tracebuf[0] : 0;
Note: See TracChangeset for help on using the changeset viewer.