log.lua

changeset 3
b2df1b3f2c83
child 7
038275cd92ed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/log.lua	Sun Sep 13 22:22:47 2009 +0300
@@ -0,0 +1,10 @@
+
+module("log", package.seeall)
+
+require("config")
+
+function log(str)
+    if config.debug then
+        io.stderr:write(str)
+    end
+end

mercurial