Calling inline functions

Ty Young youngty1997 at gmail.com
Mon Apr 20 12:34:50 UTC 2020


Is calling inline functions supported right now? I'm trying to call this 
function:


__attribute__((always_inline)) static inline int 
internal_load_libgamemode(void)


with:


this.address = 
gamemode_client_h.LIBRARY_LOOKUP.lookup("internal_load_libgamemode");

this.descriptor = FunctionDescriptor.of(MemoryLayouts.C_INT);

this.type = MethodType.methodType(int.class);

this.handle = 
Foreign.getInstance().getSystemABI().downcallHandle(this.address, 
this.type, this.descriptor);


...but it fails saying the symbol doesn't exist. Is there a way to call it?


Full header: 
https://github.com/FeralInteractive/gamemode/blob/master/lib/gamemode_client.h




More information about the panama-dev mailing list