mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-11 07:30:57 +02:00
CLuaInstance: Precise error message for obsolete hide() parameter
- Supplement for commit11c6e81a50
Origin commit data ------------------ Branch: ni/coolstream Commit:f12e49e720
Author: Michael Liebmann <tuxcode.bbg@gmail.com> Date: 2016-01-01 (Fri, 01 Jan 2016) ------------------ This commit was generated by Migit
This commit is contained in:
@@ -84,6 +84,14 @@ void functionDeprecated(lua_State *L, const char* oldFunc, const char* newFunc)
|
||||
ar.short_src, ar.currentline);
|
||||
}
|
||||
|
||||
void obsoleteHideParameter(lua_State *L)
|
||||
{
|
||||
lua_Debug ar;
|
||||
lua_getstack(L, 1, &ar);
|
||||
lua_getinfo(L, "Sl", &ar);
|
||||
printf("\33[1;31m[Lua script warning]\33[0m %s:%d: Obsolete parameter for hide() in use, please remove!\n", ar.short_src, ar.currentline);
|
||||
}
|
||||
|
||||
lua_Unsigned checkMagicMask(lua_Unsigned col)
|
||||
{
|
||||
if ((col & MAGIC_MASK) == MAGIC_COLOR)
|
||||
|
Reference in New Issue
Block a user