diff --git a/include/mstch/mstch.hpp b/include/mstch/mstch.hpp index b5b0d03..fbd25df 100644 --- a/include/mstch/mstch.hpp +++ b/include/mstch/mstch.hpp @@ -1,5 +1,4 @@ -#ifndef _MSTCH_H_ -#define _MSTCH_H_ +#pragma once #include #include @@ -37,5 +36,3 @@ namespace mstch { const std::map& partials = std::map()); } - -#endif // _MSTCH_H_ diff --git a/src/render_context.hpp b/src/render_context.hpp index 9a12253..01ba8ff 100644 --- a/src/render_context.hpp +++ b/src/render_context.hpp @@ -1,5 +1,4 @@ -#ifndef _MSTCH_RENDER_CONTEXT_H_ -#define _MSTCH_RENDER_CONTEXT_H_ +#pragma once #include #include @@ -49,5 +48,3 @@ namespace mstch { std::string delim_end; }; } - -#endif //_MSTCH_RENDER_CONTEXT_H_ diff --git a/src/state/in_inverted_section.hpp b/src/state/in_inverted_section.hpp index 663f9e0..2a47727 100644 --- a/src/state/in_inverted_section.hpp +++ b/src/state/in_inverted_section.hpp @@ -1,5 +1,4 @@ -#ifndef _MSTCH_IN_INVERTED_SECTION_H_ -#define _MSTCH_IN_INVERTED_SECTION_H_ +#pragma once #include #include "render_state.hpp" @@ -19,5 +18,3 @@ namespace mstch { }; } } - -#endif //_MSTCH_IN_INVERTED_SECTION_H_ diff --git a/src/state/in_section.hpp b/src/state/in_section.hpp index f29999b..668285a 100644 --- a/src/state/in_section.hpp +++ b/src/state/in_section.hpp @@ -1,5 +1,4 @@ -#ifndef _MSTCH_IN_SECTION_H_ -#define _MSTCH_IN_SECTION_H_ +#pragma once #include "render_state.hpp" #include @@ -19,5 +18,3 @@ namespace mstch { }; } } - -#endif //_MSTCH_IN_SECTION_H_ diff --git a/src/state/outside_section.hpp b/src/state/outside_section.hpp index 9c213ca..bc0d9c0 100644 --- a/src/state/outside_section.hpp +++ b/src/state/outside_section.hpp @@ -1,5 +1,4 @@ -#ifndef _MSTCH_OUTSIDE_SECTION_H_ -#define _MSTCH_OUTSIDE_SECTION_H_ +#pragma once #include "render_state.hpp" @@ -12,5 +11,3 @@ namespace mstch { }; } } - -#endif //_MSTCH_OUTSIDE_SECTION_H_ diff --git a/src/state/render_state.hpp b/src/state/render_state.hpp index 0e1d755..d16280c 100644 --- a/src/state/render_state.hpp +++ b/src/state/render_state.hpp @@ -1,5 +1,4 @@ -#ifndef _MSTCH_RENDER_STATE_H_ -#define _MSTCH_RENDER_STATE_H_ +#pragma once #include #include "token.hpp" @@ -15,5 +14,3 @@ namespace mstch { }; } } - -#endif //_MSTCH_RENDER_STATE_H_ diff --git a/src/token.hpp b/src/token.hpp index 4a4f572..56a7998 100644 --- a/src/token.hpp +++ b/src/token.hpp @@ -1,5 +1,4 @@ -#ifndef _MSTCH_TOKEN_H_ -#define _MSTCH_TOKEN_H_ +#pragma once #include @@ -26,5 +25,3 @@ namespace mstch { type token_info(char c); }; } - -#endif //_MSTCH_TOKEN_H_ diff --git a/src/utils.hpp b/src/utils.hpp index 21fd7eb..358d49b 100644 --- a/src/utils.hpp +++ b/src/utils.hpp @@ -1,5 +1,4 @@ -#ifndef _MSTCH_UTILS_H_ -#define _MSTCH_UTILS_H_ +#pragma once #include @@ -10,5 +9,3 @@ namespace mstch { citer first_not_ws(criter begin, criter end); std::string html_escape(std::string str); } - -#endif //_MSTCH_UTILS_H_ diff --git a/src/visitor/is_node_empty.hpp b/src/visitor/is_node_empty.hpp index 6ff8c61..75bb4a6 100644 --- a/src/visitor/is_node_empty.hpp +++ b/src/visitor/is_node_empty.hpp @@ -1,5 +1,4 @@ -#ifndef _MSTCH_IS_NODE_EMPTY_H_ -#define _MSTCH_IS_NODE_EMPTY_H_ +#pragma once #include #include @@ -21,5 +20,3 @@ namespace mstch { }; } } - -#endif //_MSTCH_IS_NODE_EMPTY_H_ diff --git a/src/visitor/render_node.hpp b/src/visitor/render_node.hpp index 57f5b0b..47d7b0f 100644 --- a/src/visitor/render_node.hpp +++ b/src/visitor/render_node.hpp @@ -1,5 +1,4 @@ -#ifndef _MSTCH_RENDER_NODE_H_ -#define _MSTCH_RENDER_NODE_H_ +#pragma once #include #include @@ -26,5 +25,3 @@ namespace mstch { }; } } - -#endif //_MSTCH_RENDER_NODE_H_ diff --git a/src/visitor/render_section.hpp b/src/visitor/render_section.hpp index 115d083..6f91f9d 100644 --- a/src/visitor/render_section.hpp +++ b/src/visitor/render_section.hpp @@ -1,5 +1,4 @@ -#ifndef _MSTCH_RENDER_SECTION_H_ -#define _MSTCH_RENDER_SECTION_H_ +#pragma once #include #include @@ -32,5 +31,3 @@ namespace mstch { }; } } - -#endif //_MSTCH_RENDER_SECTION_H_