aboutsummaryrefslogtreecommitdiff
path: root/src/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/types.h')
-rw-r--r--src/types.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/types.h b/src/types.h
index d37b225..86a10aa 100644
--- a/src/types.h
+++ b/src/types.h
@@ -20,6 +20,7 @@
#define TYPES_H
#include <stdint.h>
+#include <array>
namespace melonDS
{
@@ -32,5 +33,7 @@ typedef int16_t s16;
typedef int32_t s32;
typedef int64_t s64;
+template<class T, std::size_t A, std::size_t B>
+using array2d = std::array<std::array<T, B>, A>;
}
#endif // TYPES_H