2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 17:04:55 +00:00

various implementations

This commit is contained in:
Jack Andersen
2015-08-19 16:52:07 -10:00
parent e1d45fd01c
commit 746eb46026
34 changed files with 643 additions and 23 deletions

View File

@@ -1,6 +1,7 @@
#ifndef __RETRO_TYPES_HPP__
#define __RETRO_TYPES_HPP__
#include <vector>
#include <utility>
#include "GCNTypes.hpp"
@@ -42,10 +43,24 @@ public:
template<class T> u8 TOneStatic<T>::m_allocspace[sizeof(T)];
template<class T> u32 TOneStatic<T>::m_refCount;
using TUniqueId = s16;
using TUniqueId = u16;
using TEditorId = u32;
using TAreaId = u32;
#define kInvalidEditorId TEditorId(-1)
#define kInvalidUniqueId TUniqueId(-1)
#define kInvalidAreaId TAreaId(-1)
}
namespace rstl
{
template <class T, size_t N>
class reserved_vector : public std::vector<T>
{
public:
reserved_vector() {this->reserve(N);}
};
}
#endif // __RETRO_TYPES_HPP__