Ignore:
Timestamp:
07/09/20 17:26:44 (4 years ago)
Author:
Maciej Komosinski
Message:

Added helpful stdout messages before crash for cases when assert() would not work/print anything

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/util/sstring.cpp

    r989 r996  
    226226                if ((newlength >= (buf->size + 1)) || (buf->size == 0))
    227227                {
     228                        logMessage("SString", "endWrite", LOG_CRITICAL, "newlength >= allocated or nothing allocated");
    228229                        assert((newlength < (buf->size + 1)) && (buf->size > 0));
    229230                        if (buf->size == 0) return;
Note: See TracChangeset for help on using the changeset viewer.