#include "util-enum.h"
#include "util-error.h"
#include "util-debug-filters.h"
+#include "util-atomic.h"
/**
* \brief ENV vars that can be used to set the properties for the logging module
* errors to be fatal errors */
#if !defined(__clang_analyzer__)
#define FatalErrorOnInit(x, ...) do { \
+ SC_ATOMIC_EXTERN(unsigned int, engine_stage); \
int init_errors_fatal = 0; \
ConfGetBool("engine.init-failure-fatal", &init_errors_fatal); \
if (init_errors_fatal && (SC_ATOMIC_GET(engine_stage) == SURICATA_INIT))\
#include "suricata-common.h"
#include "suricata.h"
+#include "util-atomic.h"
+
+SC_ATOMIC_EXTERN(unsigned int, engine_stage);
void *SCMallocFunc(const size_t sz)
{
#ifndef __UTIL_MEM_H__
#define __UTIL_MEM_H__
-#include "util-atomic.h"
-
#if CPPCHECK==1 || defined(__clang_analyzer__)
#define SCMalloc malloc
#define SCCalloc calloc
#include "mm_malloc.h"
#endif
-SC_ATOMIC_EXTERN(unsigned int, engine_stage);
-
void *SCMallocFunc(const size_t sz);
#define SCMalloc(sz) SCMallocFunc((sz))