Build materials.

This commit is contained in:
momo5502
2016-01-22 11:59:43 +01:00
parent 7e8663604b
commit ac4548f4c2
23 changed files with 563 additions and 31 deletions

View File

@ -34,6 +34,10 @@ namespace Utils
char* Save(const void * _str, size_t size, size_t count = 1);
char* Save(Game::XFILE_BLOCK_TYPES stream, const void * _str, size_t size, size_t count);
char* Save(Game::XFILE_BLOCK_TYPES stream, int value, size_t count);
template <typename T> char* SaveArray(T* array, size_t count)
{
return Save(array, sizeof(T), count);
}
char* SaveString(std::string string);
char* SaveString(const char* string);

View File

@ -1,3 +1,5 @@
#define ARR_SIZE(x) (sizeof(x) / sizeof(x[0]))
namespace Utils
{
const char *VA(const char *fmt, ...);