Skip to content

Commit

Permalink
Added missing #pragma once (issue #310)
Browse files Browse the repository at this point in the history
  • Loading branch information
bblanchon committed Jun 23, 2016
1 parent 59cd1f1 commit 10fcca2
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
ArduinoJson: change log
=======================

HEAD
----

* Added missing `#pragma once` (issue #310)

v5.6.0
------

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Features
* Portable (written in C++98)
* Self-contained (no external dependency)
* Small footprint
* Header-only library
* MIT License

Works on
Expand Down
2 changes: 2 additions & 0 deletions include/ArduinoJson.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// https://github.com/bblanchon/ArduinoJson
// If you like this project, please add a star!

#pragma once

#include "ArduinoJson/DynamicJsonBuffer.hpp"
#include "ArduinoJson/JsonArray.hpp"
#include "ArduinoJson/JsonObject.hpp"
Expand Down
4 changes: 3 additions & 1 deletion include/ArduinoJson/Internals/JsonParser.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
// https://github.com/bblanchon/ArduinoJson
// If you like this project, please add a star!

#include "JsonParser.hpp"
#pragma once

#include "Comments.hpp"
#include "JsonParser.hpp"

inline bool ArduinoJson::Internals::JsonParser::skip(char charToSkip) {
const char *ptr = skipSpacesAndComments(_readPtr);
Expand Down
2 changes: 2 additions & 0 deletions include/ArduinoJson/JsonBuffer.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// https://github.com/bblanchon/ArduinoJson
// If you like this project, please add a star!

#pragma once

#include "Internals/JsonParser.hpp"

inline ArduinoJson::JsonArray &ArduinoJson::JsonBuffer::createArray() {
Expand Down

0 comments on commit 10fcca2

Please sign in to comment.