From 718844acb9a1a96db05519166e732f4c2dde91b7 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Mon, 9 Feb 2015 20:44:12 +0100 Subject: added a CRAWLER_UNUSED for lua specific module initialization code fixed to comile without WITH_flags (continued) --- src/crawl/crawl.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/crawl/crawl.cpp') 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" ); -- cgit v1.2.3-54-g00ecf