sploving1 wrote:
> hi, all
> when wrap function "double sumTwoArgItems(double *first, int nbRow,
> int nbCol, double *second, int nbRow2, int nbCol2);", it would generate
> the following code: "CheckRhs(6, 6);" in scilab module, but I want to
> generate "CheckRhs(2, 2);". then how to handle it ? Btw, the code
> "CheckRhs(¡£¬¡)" is coming the
> scilab.cxx, not the typemap file, just as the following:
> "int num_arguments = emit_num_arguments(l);
> int num_required = emit_num_required(l);
> Printf(f->def, "CheckRhs(%d, %d);\n",num_required,num_arguments);"
I'm not sure I follow. If you have 6 arguments in the CheckRhs method,
then emit_num_arguments() is going to return 6. I don't know what the
generic relationship is to have 6 converted into 2, why 2?? Have you
looked at multi-argument typemaps, they might be what you want.
William
|