mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
Fix issue #39: Add header guards
This commit is contained in:
parent
8ae77b1fd5
commit
51da13607c
@ -16,6 +16,9 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef GSL_ARRAY_VIEW_H
|
||||
#define GSL_ARRAY_VIEW_H
|
||||
|
||||
#include <new>
|
||||
#include <stdexcept>
|
||||
#include <cstddef>
|
||||
@ -2286,3 +2289,5 @@ general_array_view_iterator<ArrayView> operator+(typename general_array_view_ite
|
||||
#endif // _MSC_VER <= 1800
|
||||
|
||||
#pragma pop_macro("_NOEXCEPT")
|
||||
|
||||
#endif // GSL_ARRAY_VIEW_H
|
||||
|
@ -16,6 +16,9 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef GSL_FAIL_FAST_H
|
||||
#define GSL_FAIL_FAST_H
|
||||
|
||||
#include <exception>
|
||||
#include <stdexcept>
|
||||
|
||||
@ -45,3 +48,5 @@ inline void fail_fast_assert(bool cond, const char* const) { if (!cond) std::ter
|
||||
#endif // SAFER_CPP_TESTING
|
||||
|
||||
}
|
||||
|
||||
#endif // GSL_FAIL_FAST_H
|
||||
|
@ -16,6 +16,9 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef GSL_GSL_H
|
||||
#define GSL_GSL_H
|
||||
|
||||
#include "array_view.h" // array_view, strided_array_view...
|
||||
#include "string_view.h" // zstring, string_view, zstring_builder...
|
||||
#include <memory>
|
||||
@ -287,3 +290,5 @@ private:
|
||||
template<class T> using maybe_null = maybe_null_ret<T>;
|
||||
|
||||
} // namespace Guide
|
||||
|
||||
#endif // GSL_GSL_H
|
||||
|
@ -16,6 +16,9 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef GSL_STRING_VIEW_H
|
||||
#define GSL_STRING_VIEW_H
|
||||
|
||||
#include "array_view.h"
|
||||
#include <cstring>
|
||||
|
||||
@ -176,3 +179,5 @@ using zstring_builder = basic_zstring_builder<char, Max>;
|
||||
template <size_t Max = dynamic_range>
|
||||
using wzstring_builder = basic_zstring_builder<wchar_t, Max>;
|
||||
}
|
||||
|
||||
#endif // GSL_STRING_VIEW_H
|
||||
|
Loading…
Reference in New Issue
Block a user