Inlined functions should be skipped
If you do
/**
* test_me:
*
* An static inlined function. Needs to be skipped because GI is not so
* smart.
*
* Returns: not 132 but 1
*/
static inline int test_me(void);
static inline int test_me(void)
{
return 1;
}
then
In [1]: from gi.repository import Test
In [2]: Test.me()
---------------------------------------------------------------------------
Error Traceback (most recent call last)
<ipython-input-2-350b3b934396> in <module>()
----> 1 Test.me()
Error: g-invoke-error-quark: Could not locate test_me: 'test_me': build/libtestlib.so: undefined symbol: test_me (1)
The function should be automatically (skipped) as there is no symbol in the dylib. We still want the function to appear in the .gir
for documentation purposes.
Edited by Thibault Saunier