luaa: add compatibility for mouse_add

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-11-05 11:57:52 +01:00
parent 207df8e2b0
commit 6ad02f9836
1 changed files with 11 additions and 0 deletions

11
luaa.c
View File

@ -691,6 +691,15 @@ luaA_spawn(lua_State *L)
return 0; return 0;
} }
/** Deprecated function, does nothing.
*/
static int
luaA_mouse_add(lua_State *L)
{
deprecate(L);
return 0;
}
/** Initialize the Lua VM /** Initialize the Lua VM
*/ */
void void
@ -721,6 +730,8 @@ luaA_init(void)
{ "font", luaA_font }, { "font", luaA_font },
{ "colors", luaA_colors }, { "colors", luaA_colors },
{ "conffile", luaA_conffile }, { "conffile", luaA_conffile },
/* deprecated */
{ "mouse_add", luaA_mouse_add },
{ NULL, NULL } { NULL, NULL }
}; };