~ubuntu-branches/ubuntu/raring/scilab/raring-proposed

« back to all changes in this revision

Viewing changes to modules/api_scilab/tests/nonreg_tests/sci_empty_test.cpp

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-08-30 14:42:38 UTC
  • mfrom: (1.4.7)
  • Revision ID: package-import@ubuntu.com-20120830144238-c1y2og7dbm7m9nig
Tags: 5.4.0-beta-3-1~exp1
* New upstream release
* Update the scirenderer dep
* Get ride of libjhdf5-java dependency

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
        CheckOutputArgument(pvApiCtx, 2, 2);
37
37
 
38
38
        // create results on stack
39
 
        sciErr = createMatrixOfDouble(pvApiCtx, nbInputArgument + 1, 0, 0, &dOut);
40
 
        if (sciErr.iErr)
41
 
        {
42
 
            printError(&sciErr, 0);
43
 
            return 0;
44
 
        }
45
 
 
46
 
        sciErr = createMatrixOfString(pvApiCtx, nbInputArgument + 2, 0, 0, &cOut);
47
 
 
48
 
        if (sciErr.iErr)
49
 
        {
50
 
            printError(&sciErr, 0);
51
 
            return 0;
52
 
        }
53
 
 
54
 
        AssignOutputVariable(1) = nbInputArgument + 1;
55
 
        AssignOutputVariable(2) = nbInputArgument + 2;
 
39
        sciErr = createMatrixOfDouble(pvApiCtx, nbInputArgument(pvApiCtx) + 1, 0, 0, &dOut);
 
40
        if (sciErr.iErr)
 
41
        {
 
42
            printError(&sciErr, 0);
 
43
            return 0;
 
44
        }
 
45
 
 
46
        sciErr = createMatrixOfString(pvApiCtx, nbInputArgument(pvApiCtx) + 2, 0, 0, &cOut);
 
47
 
 
48
        if (sciErr.iErr)
 
49
        {
 
50
            printError(&sciErr, 0);
 
51
            return 0;
 
52
        }
 
53
 
 
54
        AssignOutputVariable(pvApiCtx, 1) = nbInputArgument(pvApiCtx) + 1;
 
55
        AssignOutputVariable(pvApiCtx, 2) = nbInputArgument(pvApiCtx) + 2;
56
56
 
57
57
        return 0;
58
58
    }