d1d83bb80a49688aa09ef3aadc919df151d81be1
[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 //
4 // This file is released under the 3-clause BSD license. See COPYING-BSD.
5
6 function subdemolist = demo_gateway()
7
8     demopath = get_absolute_file_path("dynamic_link.dem.gateway.sce");
9     add_demo(_("Dynamic link"), demopath+"dynamic_link.dem.gateway.sce");
10
11     subdemolist = [_("Call a C function")       , "call_c.sce" ;
12     _("Call a Fortran subroutine")      , "call_fortran.sce" ;];
13
14     subdemolist(:,2) = demopath + subdemolist(:,2)
15 endfunction
16
17 subdemolist = demo_gateway();
18 clear demo_gateway;