mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-16 20:12:16 +02:00
Added a clear error message when compiled as C (issue #629)
This commit is contained in:
@ -5,6 +5,7 @@ HEAD
|
|||||||
----
|
----
|
||||||
|
|
||||||
* Added `JsonVariant::operator|` to return a default value (see bellow)
|
* Added `JsonVariant::operator|` to return a default value (see bellow)
|
||||||
|
* Added a clear error message when compiled as C instead of C++ (issue #629)
|
||||||
* Rewrote example `JsonHttpClient.ino` (issue #600)
|
* Rewrote example `JsonHttpClient.ino` (issue #600)
|
||||||
|
|
||||||
> ### How to use the new feature?
|
> ### How to use the new feature?
|
||||||
|
@ -4,6 +4,14 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
|
||||||
#include "ArduinoJson.hpp"
|
#include "ArduinoJson.hpp"
|
||||||
|
|
||||||
using namespace ArduinoJson;
|
using namespace ArduinoJson;
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
#error ArduinoJson requires a C++ compiler, please change file extension to .cc or .cpp
|
||||||
|
|
||||||
|
#endif
|
||||||
|
Reference in New Issue
Block a user