mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
Merge pull request #52 from trebconnell/addheaderguards
Fix issue #39: Add header guards
This commit is contained in:
commit
b40d3466c6
@ -16,6 +16,9 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#ifndef GSL_ARRAY_VIEW_H
|
||||||
|
#define GSL_ARRAY_VIEW_H
|
||||||
|
|
||||||
#include <new>
|
#include <new>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
@ -2286,3 +2289,5 @@ general_array_view_iterator<ArrayView> operator+(typename general_array_view_ite
|
|||||||
#endif // _MSC_VER <= 1800
|
#endif // _MSC_VER <= 1800
|
||||||
|
|
||||||
#pragma pop_macro("_NOEXCEPT")
|
#pragma pop_macro("_NOEXCEPT")
|
||||||
|
|
||||||
|
#endif // GSL_ARRAY_VIEW_H
|
||||||
|
@ -16,6 +16,9 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#ifndef GSL_FAIL_FAST_H
|
||||||
|
#define GSL_FAIL_FAST_H
|
||||||
|
|
||||||
#include <exception>
|
#include <exception>
|
||||||
#include <stdexcept>
|
#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 // SAFER_CPP_TESTING
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // GSL_FAIL_FAST_H
|
||||||
|
@ -16,6 +16,9 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#ifndef GSL_GSL_H
|
||||||
|
#define GSL_GSL_H
|
||||||
|
|
||||||
#include "array_view.h" // array_view, strided_array_view...
|
#include "array_view.h" // array_view, strided_array_view...
|
||||||
#include "string_view.h" // zstring, string_view, zstring_builder...
|
#include "string_view.h" // zstring, string_view, zstring_builder...
|
||||||
#include <memory>
|
#include <memory>
|
||||||
@ -287,3 +290,5 @@ private:
|
|||||||
template<class T> using maybe_null = maybe_null_ret<T>;
|
template<class T> using maybe_null = maybe_null_ret<T>;
|
||||||
|
|
||||||
} // namespace Guide
|
} // namespace Guide
|
||||||
|
|
||||||
|
#endif // GSL_GSL_H
|
||||||
|
@ -16,6 +16,9 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#ifndef GSL_STRING_VIEW_H
|
||||||
|
#define GSL_STRING_VIEW_H
|
||||||
|
|
||||||
#include "array_view.h"
|
#include "array_view.h"
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
|
||||||
@ -176,3 +179,5 @@ using zstring_builder = basic_zstring_builder<char, Max>;
|
|||||||
template <size_t Max = dynamic_range>
|
template <size_t Max = dynamic_range>
|
||||||
using wzstring_builder = basic_zstring_builder<wchar_t, Max>;
|
using wzstring_builder = basic_zstring_builder<wchar_t, Max>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // GSL_STRING_VIEW_H
|
||||||
|
Loading…
Reference in New Issue
Block a user