ReserveBytes template function
Wrapper for new cause i hate the syntax
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user