summaryrefslogtreecommitdiff
path: root/src/util.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2017-06-13 18:24:42 +0200
committerBardur Arantsson <bardur@scientician.net>2017-06-13 18:24:42 +0200
commit5c1aeec4bc33dab46300d2f2b09f7679a0380a44 (patch)
tree74f39f9d2fe167eb46b6ed838ba07eb439c8e899 /src/util.cc
parent554ff9a63d5d9bc64f668a00b6baa9b91dc41306 (diff)
Add std::string overload for cmsg_print()
Diffstat (limited to 'src/util.cc')
-rw-r--r--src/util.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util.cc b/src/util.cc
index 9005c04f..fc8f4080 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -1886,6 +1886,11 @@ void cmsg_print(byte color, cptr msg)
if (options->fresh_message) Term_fresh();
}
+void cmsg_print(byte color, std::string const &msg)
+{
+ cmsg_print(color, msg.c_str());
+}
+
/* Hack -- for compatibility and easy sake */
void msg_print(cptr msg)
{