mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 22:19:02 +00:00
typeindices.hpp: rename typeinfo_v to typelist_v
This commit is contained in:
parent
be61499790
commit
c7bf6421f4
3 changed files with 14 additions and 14 deletions
|
|
@ -73,11 +73,11 @@ namespace stx
|
|||
{
|
||||
if (!m_list)
|
||||
{
|
||||
m_list = std::make_unique<void*[]>(stx::typeinfo_v<typeinfo>.count());
|
||||
m_list = std::make_unique<void*[]>(stx::typelist_v<typeinfo>.count());
|
||||
return;
|
||||
}
|
||||
|
||||
for (auto& type : stx::typeinfo_v<typeinfo>)
|
||||
for (auto& type : stx::typelist_v<typeinfo>)
|
||||
{
|
||||
type.destroy(m_list[type.index()]);
|
||||
}
|
||||
|
|
@ -86,7 +86,7 @@ namespace stx
|
|||
// Default initialize all objects if possible and not already initialized
|
||||
void init() noexcept
|
||||
{
|
||||
for (auto& type : stx::typeinfo_v<typeinfo>)
|
||||
for (auto& type : stx::typelist_v<typeinfo>)
|
||||
{
|
||||
type.create(m_list[type.index()]);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -112,15 +112,15 @@ namespace stx
|
|||
|
||||
// Global typecounter instance
|
||||
template <typename Info>
|
||||
inline type_counter<Info> typeinfo_v{};
|
||||
inline type_counter<Info> typelist_v{};
|
||||
|
||||
template <typename Info>
|
||||
type_info<Info>::type_info(Info info, decltype(sizeof(int))) noexcept
|
||||
: Info(info)
|
||||
, type(typeinfo_v<Info>.count())
|
||||
, type(typelist_v<Info>.count())
|
||||
{
|
||||
// Update linked list
|
||||
typeinfo_v<Info>.next->next = this;
|
||||
typeinfo_v<Info>.next = this;
|
||||
typelist_v<Info>.next->next = this;
|
||||
typelist_v<Info>.next = this;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue