From 9ea18abb49a760fe1eda197c02cbdcd680b47204 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Sun, 22 Aug 2010 13:32:24 +0200 Subject: Pass a script name to Lua for proper reporting of error locations Now the Lua file name shows up in the error message and stack traceback, or the map file and object name in case of a script embedded in a map file. --- src/scripting/luascript.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/scripting/luascript.hpp') diff --git a/src/scripting/luascript.hpp b/src/scripting/luascript.hpp index 5e4deea..292c35a 100644 --- a/src/scripting/luascript.hpp +++ b/src/scripting/luascript.hpp @@ -45,7 +45,7 @@ class LuaScript: public Script */ ~LuaScript(); - void load(const char *); + void load(const char *prog, const char *name); void prepare(const std::string &); -- cgit