From 59f1679d37edeb653359b6eec293df15d67299b1 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Fri, 29 Aug 2014 12:46:23 +0200 Subject: [PATCH] move LUA error callback function into anonymous namespace --- Extractor/Extractor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Extractor/Extractor.cpp b/Extractor/Extractor.cpp index a8423e5a6..32d59aa84 100644 --- a/Extractor/Extractor.cpp +++ b/Extractor/Extractor.cpp @@ -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 // 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; throw OSRMException("ERROR occured in profile script:\n" + error_stream.str()); } +} bool Extractor::ParseArguments(int argc, char *argv[]) {