-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDependencyLibraryType.hpp
More file actions
41 lines (37 loc) · 1.14 KB
/
Copy pathDependencyLibraryType.hpp
File metadata and controls
41 lines (37 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef RUNCPP2_DATA_DEPENDENCY_LIBRARY_TYPE_HPP
#define RUNCPP2_DATA_DEPENDENCY_LIBRARY_TYPE_HPP
#include <string>
#include <cassert>
namespace runcpp2
{
namespace Data
{
enum class DependencyLibraryType
{
STATIC,
SHARED,
OBJECT,
HEADER,
COUNT
};
inline std::string DependencyLibraryTypeToString(DependencyLibraryType type)
{
static_assert(static_cast<int>(DependencyLibraryType::COUNT) == 4, "Update below");
switch(type)
{
case DependencyLibraryType::STATIC:
return "DependencyLibraryType::STATIC";
case DependencyLibraryType::SHARED:
return "DependencyLibraryType::SHARED";
case DependencyLibraryType::OBJECT:
return "DependencyLibraryType::OBJECT";
case DependencyLibraryType::HEADER:
return "DependencyLibraryType::HEADER";
default:
assert(false);
return "Unknown";
}
}
}
}
#endif