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

sys/sys: Add DEBUG_PANIC() macro #1471

Merged
merged 2 commits into from
Oct 23, 2018

Commits on Oct 19, 2018

  1. kernel/os: Create OS_CRASH() macro

    This macro just expands to a call to `__assert_func()`.  Unlike the
    `assert()` macro, defining `NDEBUG` does not disable this macro.
    
    This macro can be used to trigger an unconditional crash.
    ccollins476ad committed Oct 19, 2018
    Configuration menu
    Copy the full SHA
    fd1c724 View commit details
    Browse the repository at this point in the history
  2. sys/sys: Add DEBUG_PANIC() macro

    The `DEBUG_PANIC()` macro triggers a crash if the `DEBUG_PANIC_ENABLED`
    syscfg setting is enabled.  If this setting is disabled, the macro
    expands to nothing.
    ccollins476ad committed Oct 19, 2018
    Configuration menu
    Copy the full SHA
    cecdce4 View commit details
    Browse the repository at this point in the history