BLT: include a non-executing reference to context in macros
Prevent errors when building without translations.
This commit is contained in:
@@ -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...
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user