Skip to content

Commit

Permalink
fix: use ifdef for NNG_HAVE_BACKTRACE
Browse files Browse the repository at this point in the history
In some places, we use ifdef, and others if.

This normalizes for always using ifdef, so we can compile when
this macro is not defined.
  • Loading branch information
casaroli authored and gdamore committed Nov 26, 2023
1 parent 1c3adce commit 0bc1fea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/panic.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
void
nni_show_backtrace(void)
{
#if NNG_HAVE_BACKTRACE
#ifdef NNG_HAVE_BACKTRACE
void *frames[50];
int nframes;

Expand Down

0 comments on commit 0bc1fea

Please sign in to comment.