Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Below is a refined version of your header file. Key improvements include:
Use of #pragma once for modern header-guard style (you can keep the #ifndef__PLATFORM_H__ if you prefer). Consistent naming and style for macros.
Optional doc comments to explain the macros and conditions.
Explanation of Improvements
Modern Include Guard
Uses #pragma once which is widely supported and prevents multiple inclusion of the header. The classical #ifndef PLATFORM_H pattern is also there for maximum compatibility, or you could remove the latter if you want only #pragma once.
Macro Naming
Switched to uppercase macros (VK_BINDING / VK_LOCATION) to distinguish them from typical C++ code and to reflect their function as preprocessor definitions.
Doc Comments
Added short doc comments describing what the macros do and when they are used, helping new maintainers or users understand the file’s purpose.
Defines
Used defined(VULKAN) for clarity, though your original approach also worked if VULKAN is a single token. This small improvement clarifies the condition.