diff options
| author | Marco Casaroli <marco.casaroli@gmail.com> | 2023-10-22 09:42:17 +0200 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2023-11-25 16:23:30 -0800 |
| commit | 0bc1feab16ffe37e052a04b16416f3f211b5b88a (patch) | |
| tree | 7a3d174bc38aa883a3e2875dd5c14d6eba8108ad /src/core | |
| parent | 1c3adceccab907fd7cd7e1fce105e5889767dbb4 (diff) | |
| download | nng-0bc1feab16ffe37e052a04b16416f3f211b5b88a.tar.gz nng-0bc1feab16ffe37e052a04b16416f3f211b5b88a.tar.bz2 nng-0bc1feab16ffe37e052a04b16416f3f211b5b88a.zip | |
fix: use ifdef for NNG_HAVE_BACKTRACE
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.
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/panic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/panic.c b/src/core/panic.c index d50664cf..f18c0d9e 100644 --- a/src/core/panic.c +++ b/src/core/panic.c @@ -23,7 +23,7 @@ void nni_show_backtrace(void) { -#if NNG_HAVE_BACKTRACE +#ifdef NNG_HAVE_BACKTRACE void *frames[50]; int nframes; |
