]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/lib/log.qh
Introduce LOG_HELP a simpler version of LOG_INFO that doesn't bloat the console when...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / lib / log.qh
index e05ad261a5dfb6f9f70c8803ab4a0875f8a027eb..01ce44408cfead3fa0fae87b027b9d111d9ced95 100644 (file)
@@ -90,6 +90,11 @@ string(string, string...) strcat1n = #115;
                if (autocvar_developer > 1) dprint(msg); \
        MACRO_END
 
+// simpler version for help messages
+#define  LOG_HELP(...) _LOG_HELP(strcat1n(__VA_ARGS__))
+#define  LOG_HELPF(...) _LOG_HELP(sprintf(__VA_ARGS__))
+#define _LOG_HELP(s) print("^7", s, "\n")
+
 // TODO: this sucks, lets find a better way to do backtraces?
 #define _backtrace() builtin_remove(NULL)