summaryrefslogtreecommitdiff
path: root/src/crawl/crawl.cpp
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2015-02-09 20:44:12 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2015-02-09 20:44:12 +0100
commit718844acb9a1a96db05519166e732f4c2dde91b7 (patch)
tree48faea7caa97366a2d54fa7cd9129466093d6079 /src/crawl/crawl.cpp
parent73756188299a4e269c62c06bf907672673f7f8ab (diff)
downloadcrawler-718844acb9a1a96db05519166e732f4c2dde91b7.tar.gz
crawler-718844acb9a1a96db05519166e732f4c2dde91b7.tar.bz2
added a CRAWLER_UNUSED for lua specific module initialization code
fixed to comile without WITH_flags (continued)
Diffstat (limited to 'src/crawl/crawl.cpp')
-rwxr-xr-xsrc/crawl/crawl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/crawl/crawl.cpp b/src/crawl/crawl.cpp
index 460d41a..5c121c0 100755
--- a/src/crawl/crawl.cpp
+++ b/src/crawl/crawl.cpp
@@ -217,7 +217,9 @@ int main( int /* argc */, char *argv[] )
lua_newtable( luaVm.handle( ) );
lua_pushstring( luaVm.handle( ), "create" );
lua_pushlightuserdata( luaVm.handle( ), &urlNormalizers );
+#ifdef WITH_LUA
lua_pushcclosure( luaVm.handle( ), (lua_CFunction)urlNormalizers.luaCreateFunc, 1 );
+#endif
lua_settable( luaVm.handle( ), -3 );
lua_setglobal( luaVm.handle( ), "urlnormalizers" );