ostream: style and comments

This commit is contained in:
Danny Robson 2017-09-01 12:49:49 +10:00
parent 5ef137fda4
commit 3d2229ea93

View File

@ -25,14 +25,22 @@
#include <ostream> #include <ostream>
///////////////////////////////////////////////////////////////////////////////
std::ostream& operator<< (std::ostream&, VkPhysicalDeviceType); std::ostream& operator<< (std::ostream&, VkPhysicalDeviceType);
std::ostream& operator<< (std::ostream&, const VkPhysicalDeviceLimits&); std::ostream& operator<< (std::ostream&, const VkPhysicalDeviceLimits&);
std::ostream& operator<< (std::ostream&, const VkPhysicalDeviceProperties&); std::ostream& operator<< (std::ostream&, const VkPhysicalDeviceProperties&);
///////////////////////////////////////////////////////////////////////////////
namespace cruft::vk { namespace cruft::vk {
#define CRUFT_VK_OSTREAM(T) std::ostream& operator<< (std::ostream&, const cruft::vk::T&); #define CRUFT_VK_OSTREAM(T) \
VK_TYPE_MAP (CRUFT_VK_OSTREAM) std::ostream& \
#undef CRUFT_VK_OSTREAM operator<< (std::ostream&, const cruft::vk::T&);
VK_TYPE_MAP (CRUFT_VK_OSTREAM)
#undef CRUFT_VK_OSTREAM
} }
#endif #endif