mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Use different output messages for deprecated methods versus functions.
--HG-- branch : minor
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user