示例#1
0
文件: C.java 项目: csdms/cca-babel
 public static String getArgumentWithFormal(
     Argument arg, Context context, boolean objPtr, boolean inStub, boolean isExec)
     throws CodeGenerationException {
   final Type type = arg.getType();
   if (Type.ENUM == type.getDetailedType()) {
     return getEnumName(type.getSymbolID())
         + ((arg.getMode() != Argument.IN) ? "* " : " ")
         + arg.getFormalName();
   } else {
     return IOR.getArgumentWithFormal(arg, context, objPtr, inStub, isExec);
   }
 }
示例#2
0
文件: C.java 项目: csdms/cca-babel
 public static String getReturnString(Type type, Context context, boolean objPtr, boolean inStub)
     throws CodeGenerationException {
   return (Type.ENUM == type.getDetailedType())
       ? getEnumName(type.getSymbolID())
       : IOR.getReturnString(type, context, objPtr, inStub);
 }