Examples of CallingConvention


Examples of jnr.ffi.CallingConvention

        }

        @Override
        public NativeFunction next() {
            // Allow individual methods to set the calling convention to stdcall
            CallingConvention callingConvention = methods[nextIndex].isAnnotationPresent(StdCall.class)
                    ? CallingConvention.STDCALL : InterfaceScanner.this.callingConvention;
            return new NativeFunction(methods[nextIndex++], callingConvention);
        }
View Full Code Here

Examples of jnr.ffi.CallingConvention

                    resultContext);

            ParameterType[] parameterTypes = getParameterTypes(runtime, typeMapper, method);

            // Allow individual methods to set the calling convention to stdcall
            CallingConvention callingConvention = method.isAnnotationPresent(StdCall.class)
                    ? CallingConvention.STDCALL : libraryCallingConvention;

            Function function = new Function(functionAddress,
                    getCallContext(resultType, parameterTypes, callingConvention, InvokerUtil.requiresErrno(method)));
View Full Code Here

Examples of org.renjin.gcc.gimple.CallingConvention

    for (String sourceName : sources) {
      File source = new File(getClass().getResource(sourceName).getFile());
      GimpleCompilationUnit unit = gcc.compileToGimple(source);

      CallingConvention callingConvention = CallingConventions.fromFile(source);
      for (GimpleFunction function : unit.getFunctions()) {
        function.setCallingConvention(callingConvention);
      }
      units.add(unit);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.