From b0c1e740cf404f8fed5eed75fddb205ca74314e0 Mon Sep 17 00:00:00 2001 From: Max Romanov Date: Wed, 12 Jul 2017 20:32:16 +0300 Subject: New process port exchange changed. READY message type introduced. Application process start request DATA message from router to master. Master notifies router via NEW_PORT message after worker process become ready. --- src/nxt_log.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/nxt_log.h') diff --git a/src/nxt_log.h b/src/nxt_log.h index 74260576..504d2ee8 100644 --- a/src/nxt_log.h +++ b/src/nxt_log.h @@ -162,4 +162,17 @@ NXT_EXPORT extern nxt_log_t nxt_main_log; NXT_EXPORT extern nxt_str_t nxt_log_levels[]; +#define nxt_assert(c) \ + do { \ + if (nxt_fast_path(c)) { \ + break; \ + \ + } else { \ + nxt_thread_log_alert("%s:%d assertion failed: %s", \ + __FILE__, __LINE__, #c ); \ + nxt_abort(); \ + } \ + } while (0) + + #endif /* _NXT_LOG_H_INCLUDED_ */ -- cgit