gmacros: Provide platform-independent G_ALWAYS_INLINE and G_NO_INLINE

We had gcc-only implementations for them while both can be used in all
the supported platforms we have.

So let's just provide generic definitions, while we keep the old ones
for both consistency and retro-compatibility.
This commit is contained in:
Marco Trevisan (Treviño)
2022-06-24 14:44:02 +02:00
parent b5231ed003
commit 15cd0f0461
3 changed files with 129 additions and 0 deletions

View File

@@ -516,6 +516,10 @@ G_CONST_RETURN
G_NORETURN
G_NORETURN_FUNCPTR
<SUBSECTION>
G_ALWAYS_INLINE
G_NO_INLINE
<SUBSECTION>
G_N_ELEMENTS
</SECTION>
@@ -782,6 +786,7 @@ g_macro__has_attribute
g_macro__has_builtin
g_macro__has_feature
g_macro__has_extension
g_macro__has_attribute___always_inline__
g_macro__has_attribute___alloc_size__
g_macro__has_attribute___const__
g_macro__has_attribute___deprecated__