Skip to content
This repository has been archived by the owner on Mar 24, 2024. It is now read-only.

Commit

Permalink
Add UNUSED macro again
Browse files Browse the repository at this point in the history
  • Loading branch information
kbeckmann committed Jan 4, 2021
1 parent 59355f3 commit 31ca5a0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions nofrendo-go/components/nofrendo/nofrendo.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,15 @@
#endif

#ifdef NOFRENDO_DEBUG
// #define UNUSED(x)
#ifndef UNUSED
# define UNUSED(x)
#endif
#define ASSERT(expr) nofrendo_assert((int) (expr), __LINE__, __FILE__, NULL)
#define MESSAGE_DEBUG(x...) nofrendo_printf(0, __FUNCTION__, "> " x)
#else
// #define UNUSED(x) (void)x
#ifndef UNUSED
# define UNUSED(x) (void)x
#endif
#define ASSERT(expr)
#define MESSAGE_DEBUG(x...)
#endif
Expand Down

0 comments on commit 31ca5a0

Please sign in to comment.