From d10a36ad78decfe03d45a99a6571f893ad09de00 Mon Sep 17 00:00:00 2001 From: Justin Scofield <47263509+scawful@users.noreply.github.com> Date: Tue, 12 Jul 2022 19:51:58 -0400 Subject: [PATCH] ReserveBytes template function Wrapper for new cause i hate the syntax --- src/app/core/common.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/core/common.h b/src/app/core/common.h index 5217f66f..481a876f 100644 --- a/src/app/core/common.h +++ b/src/app/core/common.h @@ -11,6 +11,11 @@ unsigned int SnesToPc(unsigned int addr); int AddressFromBytes(uint8_t addr1, uint8_t addr2, uint8_t addr3); int HexToDec(char *input, int length); +template +T* ReserveBytes(size_t size) { + auto bytes = new T[size]; +} + } // namespace core } // namespace app } // namespace yaze