summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-20 00:15:42 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-20 00:15:42 +0300
commitf96919885dd0e5ae0de4a8517e76419304ca8d36 (patch)
tree2c39f6da9bd97c45d77c77f1b9ee0505f38be0e6 /src/utils
parent1dbf1cf1d87a38a327673b69c184ad662bd12cc4 (diff)
downloadmanaverse-f96919885dd0e5ae0de4a8517e76419304ca8d36.tar.gz
manaverse-f96919885dd0e5ae0de4a8517e76419304ca8d36.tar.bz2
manaverse-f96919885dd0e5ae0de4a8517e76419304ca8d36.tar.xz
manaverse-f96919885dd0e5ae0de4a8517e76419304ca8d36.zip
Fix code style.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/delete2.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/utils/delete2.h b/src/utils/delete2.h
index 0bccaf2c3..f9fbb7f02 100644
--- a/src/utils/delete2.h
+++ b/src/utils/delete2.h
@@ -27,4 +27,10 @@
var = nullptr;\
}
+#define delete2Arr(var) \
+ {\
+ delete []var;\
+ var = nullptr;\
+ }
+
#endif // UTILS_DELETE2_H