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/shfork-win.c

    r3468 r3477  
    66#include <string.h>
    77#include <locale.h>
    8 #include <assert.h>
    98#include "shinstance.h"
    109#include <Windows.h>
     
    8584    g_stack_base  = shfork_string_to_ptr(argv[5], argv[0], "--stack-base");
    8685    g_stack_limit = shfork_string_to_ptr(argv[7], argv[0], "--stack-limit");
    87     assert((uintptr_t)stack_ptr < (uintptr_t)g_stack_base);
    88     assert((uintptr_t)stack_ptr > (uintptr_t)g_stack_limit);
     86    kHlpAssert((uintptr_t)stack_ptr < (uintptr_t)g_stack_base);
     87    kHlpAssert((uintptr_t)stack_ptr > (uintptr_t)g_stack_limit);
    8988
    9089    /*
     
    183182    int rc = 0;
    184183
    185     assert((uintptr_t)stack_ptr < (uintptr_t)g_stack_base);
    186     assert((uintptr_t)stack_ptr > (uintptr_t)g_stack_limit);
     184    kHlpAssert((uintptr_t)stack_ptr < (uintptr_t)g_stack_base);
     185    kHlpAssert((uintptr_t)stack_ptr > (uintptr_t)g_stack_limit);
    187186
    188187    /*
Note: See TracChangeset for help on using the changeset viewer.