move LUA error callback function into anonymous namespace

This commit is contained in:
Dennis Luxen 2014-08-29 12:46:23 +02:00
parent 5121983218
commit 59f1679d37

View File

@ -62,6 +62,7 @@ Extractor::Extractor() : requested_num_threads(0), file_has_pbf_format(false)
{ {
} }
namespace {
int lua_error_callback(lua_State *L) // This is so I can use my own function as an int lua_error_callback(lua_State *L) // This is so I can use my own function as an
// exception handler, pcall_log() // exception handler, pcall_log()
{ {
@ -70,6 +71,7 @@ int lua_error_callback(lua_State *L) // This is so I can use my own function as
error_stream << error_msg; error_stream << error_msg;
throw OSRMException("ERROR occured in profile script:\n" + error_stream.str()); throw OSRMException("ERROR occured in profile script:\n" + error_stream.str());
} }
}
bool Extractor::ParseArguments(int argc, char *argv[]) bool Extractor::ParseArguments(int argc, char *argv[])
{ {