Dynamic_link: add demos using stdlibs / intrinsics
[scilab.git] / scilab / modules / dynamic_link / demos / dynamic_link.dem.gateway.sce
1 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2 // Copyright (C) 2009-2011 - DIGITEO - Allan CORNET
3 // Copyright (C) 2018 - ESI Group - Clement DAVID
4 //
5 // This file is released under the 3-clause BSD license. See COPYING-BSD.
6
7 function subdemolist = demo_gateway()
8
9     demopath = get_absolute_file_path("dynamic_link.dem.gateway.sce");
10     add_demo(_("Dynamic link"), demopath+"dynamic_link.dem.gateway.sce");
11
12     subdemolist = [_("Call a C function")                   , "call_c.sce" ;
13     _("Call a C function (using C standard library)")       , "call_c_stdlib.sce" ;
14     _("Call a Fortran subroutine")                          , "call_fortran.sce" ;
15     _("Call a Fortran subroutine (with Fortran intrinsics)"), "call_fortran_stdlib.sce" ;
16     _("Call a C++ function")                                , "call_cxx.sce" ;
17     _("Call a C++ function (using C++ Standard Library)")   , "call_cxx_stdlib.sce" ;];
18
19     subdemolist(:,2) = demopath + subdemolist(:,2)
20 endfunction
21
22 subdemolist = demo_gateway();
23 clear demo_gateway;