diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2014-10-09 08:59:02 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2014-10-09 08:59:02 +0200 |
commit | 7d8b1ff684b412da292e0fc734748975188a0f10 (patch) | |
tree | 2673e3da51cc80bfc38a426048b30a4d71c31d4c /tolua/src/tests/myassert.lua | |
parent | 62c5bb90525baf0d82c23892c2666f611750d63c (diff) | |
download | crawler-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.lua | 6 |
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 + |