diff options
Diffstat (limited to 'sci_gateway/cpp/sci_octave.cpp')
-rw-r--r-- | sci_gateway/cpp/sci_octave.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sci_gateway/cpp/sci_octave.cpp b/sci_gateway/cpp/sci_octave.cpp index 817c184..177a6b9 100644 --- a/sci_gateway/cpp/sci_octave.cpp +++ b/sci_gateway/cpp/sci_octave.cpp @@ -368,6 +368,10 @@ extern "C" else if (outStruct[j].type == TYPE_STRING){ scilab_setStructMatrix2dData(env, out[i], (const wchar_t*) outStruct[j].key, 0, 0, scilab_createString(env, (const wchar_t*) outStruct[j].str)); } + else{ + Scierror(999, _("%s: Unsupported type of output argument in struct %d for key \"%ls\".\n"), fname, i, (const wchar_t*) outStruct[i].key); + return STATUS_ERROR; + } } } else if (ins[i].is_out_string == 1){ |