$ make PREFIX="/usr/local"
$ make install PREFIX="/usr/local"
-.. note:: Always build with ``PREFIX`` if you want to install, as it is hardcoded in the executable for module search path. If you build the binary with ``-DNDEBUG``, verbose logging will be disabled as well.
+.. note:: Always build with ``PREFIX`` if you want to install, as it is hardcoded in the executable for module search path. If you build the binary with ``-DNLOGDEBUG``, verbose logging will be disabled as well.
Alternatively you can build only specific parts of the project, i.e. ``library``.
#include "lib/defines.h"
#include "lib/utils.h"
-#ifndef NDEBUG
+#ifndef NLOGDEBUG
/** @internal Print a debug message related to resolution. */
#define QRDEBUG(query, cls, fmt, ...) do { \
unsigned _ind = 0; \
return KR_STATE_CONSUME;
}
-#ifndef NDEBUG
+#ifndef NLOGDEBUG
const knot_lookup_t *rcode = knot_lookup_by_id(knot_rcode_names, knot_wire_get_rcode(pkt->wire));
#endif
int kr_resolve_finish(struct kr_request *request, int state)
{
-#ifndef NDEBUG
+#ifndef NLOGDEBUG
struct kr_rplan *rplan = &request->rplan;
#endif
/* Finalize answer */
*/
#define kr_log_info(fmt, ...) do { printf((fmt), ## __VA_ARGS__); fflush(stdout); } while(0)
#define kr_log_error(fmt, ...) fprintf(stderr, (fmt), ## __VA_ARGS__)
-#ifndef NDEBUG
+#ifndef NLOGDEBUG
/* Toggle debug messages */
KR_EXPORT bool kr_debug_set(bool status);
KR_EXPORT KR_PURE bool kr_debug_status(void);