wren
Vulkan-based game engine
Loading...
Searching...
No Matches
enums.hpp File Reference
#include <boost/algorithm/string.hpp>
#include <boost/describe.hpp>
#include <string>
Include dependency graph for enums.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  wren
 
namespace  wren::utils
 

Macros

#define DESCRIBED_ENUM(E, ...)
 

Functions

template<class E >
auto wren::utils::enum_to_string (E e) -> std::string
 
template<typename E >
auto wren::utils::string_to_enum (const std::string_view &name, bool case_sensitive=false) -> std::optional< E >
 

Macro Definition Documentation

◆ DESCRIBED_ENUM

#define DESCRIBED_ENUM ( E,
... )
Value:
enum class E { __VA_ARGS__ }; \
BOOST_DESCRIBE_ENUM(E, __VA_ARGS__)