From a3241d10979b75b252d126d46fcee1df7cd9d255 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 25 Aug 2011 20:20:07 +0200 Subject: initial commit This is a proof of concept --- lib/e.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 lib/e.lua (limited to 'lib') diff --git a/lib/e.lua b/lib/e.lua new file mode 100644 index 0000000..738a519 --- /dev/null +++ b/lib/e.lua @@ -0,0 +1,18 @@ +module(..., package.seeall) + +function ebegin(msg) + io.write(" * "..msg..": ") +end + + +function eend(status, msg) + local msg + if status then + msg = "ok" + else + msg = "failed" + end + io.write(msg.."\n") + return status +end + -- cgit v1.2.3