Project

General

Profile

Feature #1544 ยป 0077-api_common_intl.c-Replace-NULL-with-nullptr.patch

Marko Lindqvist, 06/28/2025 01:27 AM

View differences:

common/scriptcore/api_common_intl.c
**************************************************************************/
const char *api_intl__(lua_State *L, const char *untranslated)
{
LUASCRIPT_CHECK_STATE(L, NULL);
LUASCRIPT_CHECK_STATE(L, nullptr);
LUASCRIPT_CHECK_ARG_NIL(L, untranslated, 2, string, "");
return _(untranslated);
......
**************************************************************************/
const char *api_intl_N_(lua_State *L, const char *untranslated)
{
LUASCRIPT_CHECK_STATE(L, NULL);
LUASCRIPT_CHECK_STATE(L, nullptr);
LUASCRIPT_CHECK_ARG_NIL(L, untranslated, 2, string, "");
return N_(untranslated);
......
**************************************************************************/
const char *api_intl_Q_(lua_State *L, const char *untranslated)
{
LUASCRIPT_CHECK_STATE(L, NULL);
LUASCRIPT_CHECK_STATE(L, nullptr);
LUASCRIPT_CHECK_ARG_NIL(L, untranslated, 2, string, "");
return Q_(untranslated);
......
const char *api_intl_PL_(lua_State *L, const char *singular,
const char *plural, int n)
{
LUASCRIPT_CHECK_STATE(L, NULL);
LUASCRIPT_CHECK_STATE(L, nullptr);
LUASCRIPT_CHECK_ARG_NIL(L, singular, 2, string, "");
LUASCRIPT_CHECK_ARG_NIL(L, plural, 3, string, "");
    (1-1/1)