From 6ad02f98364f8bfa28aedceb590d3d6aa748699b Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 5 Nov 2008 11:57:52 +0100 Subject: [PATCH] luaa: add compatibility for mouse_add Signed-off-by: Julien Danjou --- luaa.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/luaa.c b/luaa.c index fc89fbb2..987086fa 100644 --- a/luaa.c +++ b/luaa.c @@ -691,6 +691,15 @@ luaA_spawn(lua_State *L) return 0; } +/** Deprecated function, does nothing. + */ +static int +luaA_mouse_add(lua_State *L) +{ + deprecate(L); + return 0; +} + /** Initialize the Lua VM */ void @@ -721,6 +730,8 @@ luaA_init(void) { "font", luaA_font }, { "colors", luaA_colors }, { "conffile", luaA_conffile }, + /* deprecated */ + { "mouse_add", luaA_mouse_add }, { NULL, NULL } };