summaryrefslogtreecommitdiff
path: root/tolua/src/tests/myassert.lua
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2014-10-09 08:59:02 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2014-10-09 08:59:02 +0200
commit7d8b1ff684b412da292e0fc734748975188a0f10 (patch)
tree2673e3da51cc80bfc38a426048b30a4d71c31d4c /tolua/src/tests/myassert.lua
parent62c5bb90525baf0d82c23892c2666f611750d63c (diff)
downloadcrawler-7d8b1ff684b412da292e0fc734748975188a0f10.tar.gz
crawler-7d8b1ff684b412da292e0fc734748975188a0f10.tar.bz2
first trials with a Google normalizer called from Lua, std::string is the problem currently
and the missing wrapper for the URL class also added a local 'tolua', we will have to hack it
Diffstat (limited to 'tolua/src/tests/myassert.lua')
-rw-r--r--tolua/src/tests/myassert.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/tolua/src/tests/myassert.lua b/tolua/src/tests/myassert.lua
new file mode 100644
index 0000000..a4d5ebd
--- /dev/null
+++ b/tolua/src/tests/myassert.lua
@@ -0,0 +1,6 @@
+function assert (status,msg)
+ if not status then
+ print("ERROR: " .. (msg or "assertion failed")) error()
+ end
+end
+