diff options
Diffstat (limited to 'src/crawl/crawl.cpp')
-rwxr-xr-x | src/crawl/crawl.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/crawl/crawl.cpp b/src/crawl/crawl.cpp index 08d3dbf..3a8fdff 100755 --- a/src/crawl/crawl.cpp +++ b/src/crawl/crawl.cpp @@ -55,6 +55,12 @@ BOOL WINAPI termHandler( DWORD ctrlType ) #endif +#ifdef WITH_LUA +// TODO: should be in the laoding function of libcrawl +#include "tolua.h" +#include "URLLua.hpp" +#endif + static int counter = 0; int main( int /* argc */, char *argv[] ) @@ -281,6 +287,11 @@ int main( int /* argc */, char *argv[] ) LOG( logNOTICE ) << "Crawler stopped.. normal shutdown.."; +#ifdef WITH_LUA + // TODO: should be in the laoding function of libcrawl + tolua_URL_open( luaVm.handle( ) ); +#endif + luaVm.executeMain( ); //luaVm.dumpState( ); |