summaryrefslogtreecommitdiff
path: root/src/debug.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2011-10-07 14:16:38 +0000
committerMaxime Coste <frrrwww@gmail.com>2011-10-07 14:16:38 +0000
commita19f4f059d3e76210cfefdbb2881255d7fbc7879 (patch)
treea7c8740ec1308c6855d781f191c635323ce41ce4 /src/debug.hh
parent9db4aa96917184aab8d28436bec37b12ae6a4448 (diff)
Debug: add a write_debug function
write_debug writes in a Scratch buffer named '*debug*', so that debug messages are accessibles from within kakoune
Diffstat (limited to 'src/debug.hh')
-rw-r--r--src/debug.hh13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/debug.hh b/src/debug.hh
new file mode 100644
index 00000000..7fdb226c
--- /dev/null
+++ b/src/debug.hh
@@ -0,0 +1,13 @@
+#ifndef debug_hh_INCLUDED
+#define debug_hh_INCLUDED
+
+#include <string>
+
+namespace Kakoune
+{
+
+void write_debug(const std::string& str);
+
+}
+
+#endif // debug_hh_INCLUDED