Skip to content

Commit 4f3ee02

Browse files
authored
Add ifndef check in the headers (#17)
Fixes #14, #15, #16
1 parent 94f8feb commit 4f3ee02

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

include/chaiscript/extras/math.hpp

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#ifndef CHAISCRIPT_EXTRAS_MATH_HPP_
2+
#define CHAISCRIPT_EXTRAS_MATH_HPP_
3+
14
#include <cmath>
25
#include <memory>
36

@@ -807,3 +810,5 @@ namespace chaiscript {
807810
}
808811
}
809812
}
813+
814+
#endif /* CHAISCRIPT_EXTRAS_MATH_HPP_ */

include/chaiscript/extras/string_id.hpp

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#ifndef CHAISCRIPT_EXTRAS_STRING_ID_HPP_
2+
#define CHAISCRIPT_EXTRAS_STRING_ID_HPP_
13

24
#include <cmath>
35
#include <memory>
@@ -65,3 +67,4 @@ namespace chaiscript {
6567
}
6668
}
6769

70+
#endif /* CHAISCRIPT_EXTRAS_STRING_ID_HPP_ */

include/chaiscript/extras/string_methods.hpp

+6
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
*
1515
* chai.add(chaiscript::bootstrap::standard_library::vector_type<std::vector<std::string>>("VectorString"));
1616
*/
17+
18+
#ifndef CHAISCRIPT_EXTRAS_STRING_METHODS_HPP_
19+
#define CHAISCRIPT_EXTRAS_STRING_METHODS_HPP_
20+
1721
#include <algorithm>
1822
#include <string>
1923
#include <vector>
@@ -95,3 +99,5 @@ namespace chaiscript {
9599
}
96100
}
97101
}
102+
103+
#endif /* CHAISCRIPT_EXTRAS_STRING_METHODS_HPP_ */

0 commit comments

Comments
 (0)