1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#include "libcrawler.hpp" #include <iostream> #include "Unused.hpp" #ifdef WITH_LUA #include "tolua.h" #include "URLLua.hpp" #include "LuaVM.hpp" #endif void initialize_libcrawler( CRAWLER_UNUSED( void *user_data ) ) { #ifdef WITH_LUA LuaVM *vm = (LuaVM *)user_data; tolua_URL_open( vm->handle( ) ); #endif }