ReserveBytes template function

Wrapper for new cause i hate the syntax
This commit is contained in:
Justin Scofield
2022-07-12 19:51:58 -04:00
parent 6decbfa047
commit d10a36ad78

View File

@@ -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<typename T>
T* ReserveBytes(size_t size) {
auto bytes = new T[size];
}
} // namespace core
} // namespace app
} // namespace yaze