aboutsummaryrefslogtreecommitdiffstats
path: root/SQLiteStudio3/coreSQLiteStudio/common/global.h
diff options
context:
space:
mode:
Diffstat (limited to 'SQLiteStudio3/coreSQLiteStudio/common/global.h')
-rw-r--r--SQLiteStudio3/coreSQLiteStudio/common/global.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/SQLiteStudio3/coreSQLiteStudio/common/global.h b/SQLiteStudio3/coreSQLiteStudio/common/global.h
index cfd8dc0..e09391a 100644
--- a/SQLiteStudio3/coreSQLiteStudio/common/global.h
+++ b/SQLiteStudio3/coreSQLiteStudio/common/global.h
@@ -39,6 +39,10 @@
var = nullptr; \
}
+#define parser_safe_delete(var) \
+ if (var) \
+ delete var
+
#define static_char static constexpr const char
#define static_qstring(N,V) const static QString N = QStringLiteral(V)