diff options
author | James Brown | 2002-09-25 03:09:00 +0000 |
---|---|---|
committer | James Brown | 2002-09-25 03:09:00 +0000 |
commit | b5efef6be5ad42ed0357cbf1d1eec9022c336f2f (patch) | |
tree | 671c87e44e6be51744f843be05495b28f5696cd0 /scumm | |
parent | e9c1d9d802fdc96769a791c7135e1a6f6451c252 (diff) | |
download | scummvm-rg350-b5efef6be5ad42ed0357cbf1d1eec9022c336f2f.tar.gz scummvm-rg350-b5efef6be5ad42ed0357cbf1d1eec9022c336f2f.tar.bz2 scummvm-rg350-b5efef6be5ad42ed0357cbf1d1eec9022c336f2f.zip |
Fix annoying indentation of the CHECK_HEAP macro
svn-id: r5018
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/resource.cpp | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/scumm/resource.cpp b/scumm/resource.cpp index 71245cd57c..4e3ba95b26 100644 --- a/scumm/resource.cpp +++ b/scumm/resource.cpp @@ -1049,8 +1049,9 @@ int Scumm::readSoundResourceSmallHeader(int type, int idx) skip = 0x98; } ptr += skip; // size + instruments - size -= skip; // drop instruments for now - CHECK_HEAP track = (byte *)calloc(size, 1); + size -= skip; // drop instruments for now + CHECK_HEAP + track = (byte *)calloc(size, 1); if (track == NULL) { error("Out of memory while allocating %d", size); } @@ -1111,7 +1112,8 @@ byte *Scumm::getResourceAddress(int type, int idx) { byte *ptr; - CHECK_HEAP if (!validateResource("getResourceAddress", type, idx)) + CHECK_HEAP + if (!validateResource("getResourceAddress", type, idx)) return NULL; if (!res.address[type]) { @@ -1174,7 +1176,8 @@ byte *Scumm::createResource(int type, int idx, uint32 size) { byte *ptr; - CHECK_HEAP debug(9, "createResource(%s,%d,%d)", resTypeFromId(type), idx, size); + CHECK_HEAP + debug(9, "createResource(%s,%d,%d)", resTypeFromId(type), idx, size); if (!validateResource("allocating", type, idx)) return NULL; @@ -1182,7 +1185,8 @@ byte *Scumm::createResource(int type, int idx, uint32 size) expireResources(size); - CHECK_HEAP ptr = (byte *)calloc(size + sizeof(MemBlkHeader) + SAFETY_AREA, 1); + CHECK_HEAP + ptr = (byte *)calloc(size + sizeof(MemBlkHeader) + SAFETY_AREA, 1); if (ptr == NULL) { error("Out of memory while allocating %d", size); } @@ -1208,7 +1212,8 @@ void Scumm::nukeResource(int type, int idx) { byte *ptr; - CHECK_HEAP if (!res.address[type]) + CHECK_HEAP + if (!res.address[type]) return; assert(idx >= 0 && idx < res.num[type]); |