Skip to content

diag: add abort macros - #30

Merged
Pistonight merged 1 commit into
open-ead:mainfrom
Nitr4m12:abortimpl
Nov 21, 2026
Merged

Pistonight merged 1 commit into
open-ead:mainfrom
Nitr4m12:abortimpl

Conversation

@Nitr4m12

@Nitr4m12 Nitr4m12 commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

This adds some macros to make calling AbortImpl simpler. I'd like to point out that looking through the sdk a macro like NN_DETAIL_ASSERT_ARG_VALUE definitely exists, though maybe or maybe not with the same name. Because of DWARF info we know the variable it uses is called nnDetailAssertArgValue_arg1, so that's what I based the name of.


This change is Reviewable

Comment thread include/nn/diag.h Outdated

#define NN_ABORT nn::diag::detail::AbortImpl("", "", "", 0)

#define NN_DETAIL_ASSERT_ARG_VALUE(arg1) \

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is more like NN_ABORT_IF_FAIL

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@Pistonight
Pistonight merged commit 43f0e65 into open-ead:main Nov 21, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants