Skip to content

Commit

Permalink
cleanup(userspace/libsibsp): remove ASSERT_TO_LOG define
Browse files Browse the repository at this point in the history
Signed-off-by: Roberto Scolaro <[email protected]>
  • Loading branch information
therealbobo authored and poiana committed Nov 6, 2023
1 parent b8bfaba commit dc5f0d9
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions userspace/libsinsp/sinsp_public.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,8 @@ limitations under the License.
#include <cassert>
#endif

#ifdef ASSERT_TO_LOG
#define ASSERT(X) \
if(!(X)) \
{ \
g_logger.format(sinsp_logger::SEV_ERROR, "ASSERTION %s at %s:%d", #X , __FILE__, __LINE__); \
assert(X); \
}
#else
#define ASSERT(X) assert(X);
#endif // ASSERT_TO_LOG

#else // _DEBUG
#define ASSERT(X)
#endif // _DEBUG
Expand Down

0 comments on commit dc5f0d9

Please sign in to comment.