mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Rename macros with two leading underscores
These names are reserved for the compiler/library implementations.
This commit is contained in:
parent
6f4d6cb574
commit
6f2d785d0f
20 changed files with 109 additions and 113 deletions
|
@ -110,7 +110,7 @@ int ModApiServer::l_get_player_ip(lua_State *L)
|
|||
}
|
||||
catch(con::PeerNotFoundException) // unlikely
|
||||
{
|
||||
dstream << __FUNCTION_NAME << ": peer was not found" << std::endl;
|
||||
dstream << FUNCTION_NAME << ": peer was not found" << std::endl;
|
||||
lua_pushnil(L); // error
|
||||
return 1;
|
||||
}
|
||||
|
@ -136,7 +136,7 @@ int ModApiServer::l_get_player_information(lua_State *L)
|
|||
}
|
||||
catch(con::PeerNotFoundException) // unlikely
|
||||
{
|
||||
dstream << __FUNCTION_NAME << ": peer was not found" << std::endl;
|
||||
dstream << FUNCTION_NAME << ": peer was not found" << std::endl;
|
||||
lua_pushnil(L); // error
|
||||
return 1;
|
||||
}
|
||||
|
@ -150,7 +150,7 @@ int ModApiServer::l_get_player_information(lua_State *L)
|
|||
|
||||
#define ERET(code) \
|
||||
if (!(code)) { \
|
||||
dstream << __FUNCTION_NAME << ": peer was not found" << std::endl; \
|
||||
dstream << FUNCTION_NAME << ": peer was not found" << std::endl; \
|
||||
lua_pushnil(L); /* error */ \
|
||||
return 1; \
|
||||
}
|
||||
|
@ -281,7 +281,7 @@ int ModApiServer::l_ban_player(lua_State *L)
|
|||
}
|
||||
catch(con::PeerNotFoundException) // unlikely
|
||||
{
|
||||
dstream << __FUNCTION_NAME << ": peer was not found" << std::endl;
|
||||
dstream << FUNCTION_NAME << ": peer was not found" << std::endl;
|
||||
lua_pushboolean(L, false); // error
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue