Use different output messages for deprecated methods versus functions.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2017-08-27 16:55:33 -03:00
parent 3128a127cf
commit fcd9f1526c
10 changed files with 43 additions and 20 deletions
+1 -1
View File
@@ -526,7 +526,7 @@ int w_setMixWithSystem(lua_State *L)
int w_getSourceCount(lua_State *L)
{
luax_markdeprecated(L, "love.audio.getSourceCount", DEPRECATED_RENAMED, "love.audio.getActiveSourceCount");
luax_markdeprecated(L, "love.audio.getSourceCount", API_FUNCTION, DEPRECATED_RENAMED, "love.audio.getActiveSourceCount");
return w_getActiveSourceCount(L);
}
+1 -1
View File
@@ -584,7 +584,7 @@ int w_Source_getType(lua_State *L)
int w_Source_getChannels(lua_State *L)
{
luax_markdeprecated(L, "Source:getChannels", DEPRECATED_RENAMED, "Source:getChannelCount");
luax_markdeprecated(L, "Source:getChannels", API_METHOD, DEPRECATED_RENAMED, "Source:getChannelCount");
return w_Source_getChannelCount(L);
}