Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom assert() (PROF_ASSERT()) #1929

Closed
wants to merge 1 commit into from

Commits on Nov 12, 2023

  1. Add custom assert() (PROF_ASSERT())

    Add custom macro to assert statement and log error
    prior to closing application,
    it allows us to handle `assert()`'s with a grace and track issues much better.
    
    Dependencies are updated in each file, "trace.h" is placed correctly
    near imports of similar nature.
    
    In 3 cases return statement were added alongside assert(FALSE)
    since compiler don't recognize 'abort()' in case of statement failure.
    
    In 1 case 2 imports of `<assert.h>` were replaced by 1 include of `trace.h`
    
    Resolves profanity-im#1895
    H3rnand3zzz committed Nov 12, 2023
    Configuration menu
    Copy the full SHA
    e5df589 View commit details
    Browse the repository at this point in the history