mirror of
https://github.com/love2d/love.git
synced 2026-08-12 16:40:57 +02:00
Use different output messages for deprecated methods versus functions.
--HG-- branch : minor
This commit is contained in:
@@ -786,14 +786,14 @@ lua_State *luax_getpinnedthread(lua_State *L)
|
||||
return thread;
|
||||
}
|
||||
|
||||
void luax_markdeprecated(lua_State *L, const char *name)
|
||||
void luax_markdeprecated(lua_State *L, const char *name, APIType api)
|
||||
{
|
||||
luax_markdeprecated(L, name, DEPRECATED_NO_REPLACEMENT, nullptr);
|
||||
luax_markdeprecated(L, name, api, DEPRECATED_NO_REPLACEMENT, nullptr);
|
||||
}
|
||||
|
||||
void luax_markdeprecated(lua_State *L, const char *name, DeprecationType type, const char *replacement)
|
||||
void luax_markdeprecated(lua_State *L, const char *name, APIType api, DeprecationType type, const char *replacement)
|
||||
{
|
||||
MarkDeprecated deprecated(name, type, replacement);
|
||||
MarkDeprecated deprecated(name, api, type, replacement);
|
||||
|
||||
if (deprecated.info != nullptr && deprecated.info->uses == 1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user