diff options
author | Ludvig Strigeus | 2002-04-10 18:20:32 +0000 |
---|---|---|
committer | Ludvig Strigeus | 2002-04-10 18:20:32 +0000 |
commit | ceeed557796ef26bd9b24b862632cf618c703fc9 (patch) | |
tree | 4646ed1aec4a7bfefe5e11727fd3e59230493661 /sys.cpp | |
parent | 38c1be274f884602180694feb9a2e7587aaad7f5 (diff) | |
download | scummvm-rg350-ceeed557796ef26bd9b24b862632cf618c703fc9.tar.gz scummvm-rg350-ceeed557796ef26bd9b24b862632cf618c703fc9.tar.bz2 scummvm-rg350-ceeed557796ef26bd9b24b862632cf618c703fc9.zip |
overloaded 'new' operator to get zero initialized objects
svn-id: r3901
Diffstat (limited to 'sys.cpp')
-rw-r--r-- | sys.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -182,3 +182,7 @@ char *strdup(const char *s) { } #endif /* NEED_STRDUP */ + +void *operator new(size_t size) { + return calloc(size,1); +} |