Example #1
0
 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);
   }
 }
Example #2
0
 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);
 }