-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VULKAN_HPP_ENABLE_STD_MODULE is determined by the definition of __cpp…
…_lib_modules, therefore it shouldn't be declared by vku. Also, for consistent behavior, make vku also defines VKU_USE_STD_MODULE when it is unset and __cpp_lib_modules is defined. In order to do this, the header file is included.
- Loading branch information
1 parent
0672581
commit 71a68c4
Showing
34 changed files
with
83 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#pragma once | ||
|
||
#include <version> | ||
|
||
// If VKU_USE_STD_MODULE is not defined and standard library module is available, define it to enable the standard | ||
// library module usage. | ||
#if !defined(VKU_USE_STD_MODULE) && defined(__cpp_lib_modules) | ||
#define VKU_USE_STD_MODULE | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
module; | ||
|
||
#include <macros.hpp> | ||
|
||
#include <version> | ||
#ifndef VKU_USE_STD_MODULE | ||
#include <cstdint> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
module; | ||
|
||
#include <macros.hpp> | ||
|
||
#ifndef VKU_USE_STD_MODULE | ||
#include <tuple> | ||
#include <utility> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
module; | ||
|
||
#include <macros.hpp> | ||
|
||
#if !defined(VKU_USE_STD_MODULE) && defined(_MSC_VER) | ||
#include <compare> | ||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
module; | ||
|
||
#include <macros.hpp> | ||
|
||
#include <cassert> | ||
#ifndef VKU_USE_STD_MODULE | ||
#include <cstdint> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
module; | ||
|
||
#include <macros.hpp> | ||
|
||
#if !defined(VKU_USE_STD_MODULE) && defined(_MSC_VER) | ||
#include <compare> | ||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
module; | ||
|
||
#include <macros.hpp> | ||
|
||
#include <version> | ||
#ifndef VKU_USE_STD_MODULE | ||
#include <cstdint> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
module; | ||
|
||
#include <macros.hpp> | ||
|
||
#if !defined(VKU_USE_STD_MODULE) && defined(_MSC_VER) | ||
#include <compare> | ||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
module; | ||
|
||
#include <macros.hpp> | ||
|
||
#ifndef VKU_USE_STD_MODULE | ||
#include <source_location> | ||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
module; | ||
|
||
#include <macros.hpp> | ||
|
||
#ifndef VKU_USE_STD_MODULE | ||
#include <cstdint> | ||
#include <array> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
module; | ||
|
||
#include <macros.hpp> | ||
|
||
#include <cassert> | ||
#ifndef VKU_USE_STD_MODULE | ||
#include <cstdint> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
module; | ||
|
||
#include <macros.hpp> | ||
|
||
#ifndef VKU_USE_STD_MODULE | ||
#include <cstdint> | ||
#include <ranges> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
module; | ||
|
||
#include <macros.hpp> | ||
|
||
#if !defined(VKU_USE_STD_MODULE) && defined(_MSC_VER) | ||
#include <compare> | ||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
module; | ||
|
||
#include <macros.hpp> | ||
|
||
#ifndef VKU_USE_STD_MODULE | ||
#include <concepts> | ||
#include <tuple> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
module; | ||
|
||
#include <macros.hpp> | ||
|
||
#ifndef VKU_USE_STD_MODULE | ||
#include <cstdint> | ||
#include <deque> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
module; | ||
|
||
#include <macros.hpp> | ||
|
||
#include <version> | ||
#ifndef VKU_USE_STD_MODULE | ||
#include <cstdint> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
module; | ||
|
||
#include <macros.hpp> | ||
|
||
#ifndef VKU_USE_STD_MODULE | ||
#include <format> | ||
#include <source_location> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
module; | ||
|
||
#include <macros.hpp> | ||
|
||
#ifndef VKU_USE_STD_MODULE | ||
#include <cstdint> | ||
#include <tuple> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
module; | ||
|
||
#include <macros.hpp> | ||
|
||
#ifndef VKU_USE_STD_MODULE | ||
#include <tuple> | ||
#include <utility> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
module; | ||
|
||
#include <macros.hpp> | ||
|
||
#include <cassert> | ||
#ifndef VKU_USE_STD_MODULE | ||
#include <cstdint> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
module; | ||
|
||
#include <macros.hpp> | ||
|
||
#if !defined(VKU_USE_STD_MODULE) && defined(_MSC_VER) | ||
#include <compare> | ||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
module; | ||
|
||
#include <macros.hpp> | ||
|
||
#if !defined(VKU_USE_STD_MODULE) && defined(_MSC_VER) | ||
#include <compare> | ||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
module; | ||
|
||
#include <macros.hpp> | ||
|
||
#include <cerrno> | ||
#ifndef VKU_USE_STD_MODULE | ||
#include <cstdint> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
module; | ||
|
||
#include <macros.hpp> | ||
|
||
#ifndef VKU_USE_STD_MODULE | ||
#include <cstdint> | ||
#include <array> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
module; | ||
|
||
#include <macros.hpp> | ||
|
||
#ifndef VKU_USE_STD_MODULE | ||
#include <cstdint> | ||
#include <optional> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
module; | ||
|
||
#include <macros.hpp> | ||
|
||
#ifndef VKU_USE_STD_MODULE | ||
#include <vector> | ||
#ifdef _MSC_VER | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
module; | ||
|
||
#include <macros.hpp> | ||
|
||
#include <cassert> | ||
#ifndef VKU_USE_STD_MODULE | ||
#include <cstdint> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
module; | ||
|
||
#include <macros.hpp> | ||
|
||
#ifndef VKU_USE_STD_MODULE | ||
#include <concepts> | ||
#include <forward_list> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
module; | ||
|
||
#include <macros.hpp> | ||
|
||
#ifndef VKU_USE_STD_MODULE | ||
#include <vector> | ||
#ifdef _MSC_VER | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
module; | ||
|
||
#include <macros.hpp> | ||
|
||
#include <cassert> | ||
#ifndef VKU_USE_STD_MODULE | ||
#include <cstdint> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
module; | ||
|
||
#include <macros.hpp> | ||
|
||
#if !defined(VKU_USE_STD_MODULE) && defined(_MSC_VER) | ||
#include <compare> | ||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
module; | ||
|
||
#include <macros.hpp> | ||
|
||
#ifndef VKU_USE_STD_MODULE | ||
#include <concepts> | ||
#include <functional> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
module; | ||
|
||
#include <macros.hpp> | ||
|
||
#include <cassert> | ||
#ifndef VKU_USE_STD_MODULE | ||
#include <cstdint> | ||
|