role = oidl_attr_to_paramrole(IDL_PARAM_DCL(parm).attr);
if (role == DATA_IN || role == DATA_INOUT) {
char *name = IDL_IDENT(IDL_PARAM_DCL(parm).simple_declarator).str;
- fprintf(ci->fh, /* " r = " */ " ");
+ fprintf(ci->fh, " if (!");
forb_cbe_write_typespec(ci->fh, IDL_PARAM_DCL(parm).param_type_spec);
- fprintf(ci->fh, "_deserialize(cin, &%s);\n", name);
-/* fprintf(ci->fh, " if (!r) { ev->major = FORB_EX_IMP_LIMIT; goto exception; }\n"); */
+ fprintf(ci->fh, "_deserialize(cin, &%s)) {\n", name);
+ fprintf(ci->fh, " env->major = FORB_EX_MARSHAL; goto exception;\n }\n");
}
}