BLT: include a non-executing reference to context in macros

Prevent errors when building without translations.
This commit is contained in:
2020-05-07 08:58:41 +10:00
parent b0f3a53989
commit 05da8132d8
2 changed files with 5 additions and 3 deletions

View File

@@ -65,9 +65,9 @@ bool BLT_lang_is_ime_supported(void);
# define IFACE_(msgid) msgid
# define TIP_(msgid) msgid
# define DATA_(msgid) msgid
# define CTX_IFACE_(context, msgid) msgid
# define CTX_TIP_(context, msgid) msgid
# define CTX_DATA_(context, msgid) msgid
# define CTX_IFACE_(context, msgid) ((void)(0 ? (context) : 0), msgid)
# define CTX_TIP_(context, msgid) ((void)(0 ? (context) : 0), msgid)
# define CTX_DATA_(context, msgid) ((void)(0 ? (context) : 0), msgid)
#endif
/* Helper macro, when we want to define a same msgid for multiple msgctxt...

View File

@@ -697,6 +697,8 @@ static const char *template_id_context(StructRNA *type)
}
return BLT_I18NCONTEXT_DEFAULT;
}
#else
# define template_id_context(type) 0
#endif
static uiBut *template_id_def_new_but(uiBlock *block,