}
Collection<Annotation> annotations = sortedAnnotationCollection(m.getAnnotations());
String functionName = functionMapper.mapFunctionName(m.getName(), new NativeFunctionMapperContext(library, annotations));
// Allow individual methods to set the calling convention to stdcall
CallingConvention callingConvention = m.isAnnotationPresent(StdCall.class)
? CallingConvention.STDCALL : libraryCallingConvention;
boolean saveErrno = InvokerUtil.requiresErrno(m);
try {
generateFunctionInvocation(runtime, builder, m, library.findSymbolAddress(functionName),
callingConvention, saveErrno, typeMapper, generators);