diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2010-01-25 18:09:29 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2010-01-25 22:19:56 +0100 |
commit | 5cc2e6f28401a08642e20152e35333a41e34aace (patch) | |
tree | 00d68a15425eff8b2ed188a2e4258c20deb57f72 /crawl-ref/source/format.cc | |
parent | 46eeaea3c80dec4e50adc5b0a7d5dfae1e8ba0d3 (diff) | |
download | crawl-ref-5cc2e6f28401a08642e20152e35333a41e34aace.tar.gz crawl-ref-5cc2e6f28401a08642e20152e35333a41e34aace.zip |
Add formatted_string::empty().
Diffstat (limited to 'crawl-ref/source/format.cc')
-rw-r--r-- | crawl-ref/source/format.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/format.cc b/crawl-ref/source/format.cc index b60170e1e1..34b0f46439 100644 --- a/crawl-ref/source/format.cc +++ b/crawl-ref/source/format.cc @@ -513,6 +513,11 @@ void formatted_string::clear() ops.clear(); } +bool formatted_string::empty() +{ + return (ops.empty()); +} + void formatted_string::cprintf(const char *s, ...) { va_list args; |