Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.4.0 - 日本語

Change language to:
English - Français - Português - Русский

Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
However, this page did not exist in the previous stable version.

Scilab help >> API Scilab > Scilab Gateway API > CheckLhs (deprecated)

CheckLhs (deprecated)

C macro which checks the number of output arguments present in the calling Scilab function. This function is obsolete.

Calling Sequence

CheckLhs(nb_min_params,nb_max_params)

Arguments

nb_min_params

the minimum number of output arguments which must be present in the calling Scilab function

nb_max_params

the maximum number of output arguments which must be present in the calling Scilab function

Description

C macro which checks the number of output arguments present in the calling Scilab function. You must include stack-c.h to benefit from this function.

If the number of arguments is not between nb_min_params and nb_max_params, we quit the C interface (return 0;) and an error is returned in the Scilab console.

Since CheckLhs is doing a return 0; within the gateway function, it is important to call this macro before any memory allocation in order to avoid any memory leak.

WARNING: This API is deprecated from Scilab 5.2.0 and is going to be removed with Scilab 6.0. Please use API Scilab (the new Scilab API). This function has been replaced by CheckOutputArgument.

See Also

  • CheckOutputArgument — C function which checks the number of output arguments present in the calling Scilab function.
Report an issue
<< How to Scilab Gateway API CheckRhs (deprecated) >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Oct 01 17:40:38 CEST 2012