Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Handle cstruct as one of the types we now recognize.
  • Loading branch information
jnthn committed Nov 24, 2011
1 parent 878aafe commit c14163d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ops/nqp_dyncall.ops
Expand Up @@ -128,6 +128,9 @@ get_arg_type(PARROT_INTERP, PMC *info, INTVAL is_return) {
else if (Parrot_str_equal(interp, type_name, Parrot_str_new_constant(interp, "utf16str"))) {
return DYNCALL_ARG_UTF16STR | get_str_free_flag(interp, info);
}
else if (Parrot_str_equal(interp, type_name, Parrot_str_new_constant(interp, "cstruct"))) {
return DYNCALL_ARG_CSTRUCT;
}
else {
Parrot_ex_throw_from_c_args(interp, NULL, EXCEPTION_INVALID_OPERATION,
"Unknown type '%Ss' used for native call", type_name);
Expand Down

0 comments on commit c14163d

Please sign in to comment.