macro with opt input arg corrected. 13/14813/3
authorCedric Delamarre <cedric.delamarre@scilab-enterprises.com>
Mon, 7 Jul 2014 09:09:41 +0000 (11:09 +0200)
committerAntoine ELIAS <antoine.elias@scilab-enterprises.com>
Wed, 23 Jul 2014 13:46:06 +0000 (15:46 +0200)
commit37c159602860cb5e7e7525246cf114bed019e3a6
treee7a24f1d16d4910aa60fe3c1df20ffabd8ff5121
parent49dc49596a0dff382e27da20c4246ea5df4b3907
macro with opt input arg corrected.

function toto(varargin)
    disp(varargin)
    disp(a)
endfunction

// "a" must never be defined
toto()
toto(2, a=12)
toto(2, a=12, b=16)

function toto(varargin, u)
    disp(varargin)
    disp(a)
endfunction

toto()
toto(2, a=12)
// Wrong number of input arguments.
toto(2, a=12, b=16)

Change-Id: I06b7c6253ae9e14202d152fb44ef707e464586e8
scilab/modules/ast/src/cpp/types/macro.cpp