summaryrefslogtreecommitdiffstats
path: root/tapset/builtin_logging.stp
diff options
context:
space:
mode:
Diffstat (limited to 'tapset/builtin_logging.stp')
-rw-r--r--tapset/builtin_logging.stp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tapset/builtin_logging.stp b/tapset/builtin_logging.stp
index b1948877..432d8b1a 100644
--- a/tapset/builtin_logging.stp
+++ b/tapset/builtin_logging.stp
@@ -1,5 +1,13 @@
# This file contains simple bridging functions to the runtime
+function _print (msg) %{
+ _stp_print (THIS->msg);
+%}
+
+function print (msg) {
+ _print (msg . "\n")
+}
+
function _log (msg) %{
_stp_log (THIS->msg);
%}