#include <UserPermission/UserPermission.hpp>

std::unordered_map<std::string, UserPermission> userPermEnumByName = {
    #define DECL_USER_PERM(id, name) {#name, static_cast<UserPermission>(id)},
    #include <UserPermission/UserPermissionList.hpp>
};

std::unordered_map<UserPermission, const char*> userPermNameByEnum = {
    #define DECL_USER_PERM(id, name) {static_cast<UserPermission>(id), #name},
    #include <UserPermission/UserPermissionList.hpp>
};