Changeset fee4436 for libcfa


Ignore:
Timestamp:
Jul 28, 2024, 8:58:13 PM (5 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
82ff201a
Parents:
5ff721a
Message:

make subscript check DEBUG only, remove #include <assert.h>, which is no longer used

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/collections/array.hfa

    r5ff721a rfee4436  
    11#pragma once
    22
    3 #include <assert.h>
     3//#include <assert.h>
    44
    55
     
    88#define ztag(n) ttag(n)
    99
     10#ifdef __CFA_DEBUG__
    1011#define subcheck( arr, sub, lb, ub ) \
    1112        if ( (sub) < (lb) || (sub) >= (ub) ) \
    1213                abort( "subscript %ld exceeds dimension range [%d,%zd) for array %p.\n", \
    13                            (sub), (lb), (ub), (arr) );
     14                           (sub), (lb), (ub), (arr) )
     15#else
     16#define subcheck( arr, sub, lb, ub ) do {} while (0)
     17#endif
    1418
    1519//
Note: See TracChangeset for help on using the changeset viewer.