summaryrefslogtreecommitdiff
path: root/include/lib/ArduinoJson/Polyfills/assert.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/lib/ArduinoJson/Polyfills/assert.hpp')
-rw-r--r--include/lib/ArduinoJson/Polyfills/assert.hpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/lib/ArduinoJson/Polyfills/assert.hpp b/include/lib/ArduinoJson/Polyfills/assert.hpp
new file mode 100644
index 0000000..1030ec6
--- /dev/null
+++ b/include/lib/ArduinoJson/Polyfills/assert.hpp
@@ -0,0 +1,14 @@
+// ArduinoJson - https://arduinojson.org
+// Copyright Benoit Blanchon 2014-2021
+// MIT License
+
+#pragma once
+
+#include <ArduinoJson/Configuration.hpp>
+
+#if ARDUINOJSON_DEBUG
+#include <assert.h>
+#define ARDUINOJSON_ASSERT(X) assert(X)
+#else
+#define ARDUINOJSON_ASSERT(X) ((void)0)
+#endif