1 #ifndef uscript_common_h
2 #define uscript_common_h
14 std::string_view
name, prefix, suffix;
16 name = __PRETTY_FUNCTION__;
17 prefix =
"auto type_name() [T = ";
19 #elif defined(__GNUC__)
20 name = __PRETTY_FUNCTION__;
21 prefix =
"constexpr auto type_name() [with T = ";
23 #elif defined(_MSC_VER)
25 prefix =
"auto __cdecl type_name<";
28 name.remove_prefix(prefix.size());
29 name.remove_suffix(suffix.size());
constexpr auto type_name()