Browse Source

feat: Make ARG_ENABLE_TRACE and ARG_ENABLE_LOG configurable

Currently to configure ARG_ENABLE_TRACE or ARG_ENABLE_LOG, we have to
modify argtable3 source code. This commit allows setting these options
via the compiler flags.
pull/79/head
Ivan Grokhotkov 2 years ago
parent
commit
7d63a1f0ef
No known key found for this signature in database GPG Key ID: 1E050E141B280628
  1. 5
      src/argtable3_private.h

5
src/argtable3_private.h

@ -35,8 +35,13 @@
#include <stdlib.h>
#ifndef ARG_ENABLE_TRACE
#define ARG_ENABLE_TRACE 0
#endif /* ARG_ENABLE_TRACE */
#ifndef ARG_ENABLE_LOG
#define ARG_ENABLE_LOG 1
#endif /* ARG_ENABLE_LOG */
#ifdef __cplusplus
extern "C" {

Loading…
Cancel
Save