Navigation

Operators and Keywords

Function List:

C++ API

test_eval-catch.m File Reference


Functions

"clear a; a;","" eval ()
 !assert (x, 1)
 !assert (lasterr()(1:13),"`a' undefined")
 !assert (str(1:13),"`a' undefined")
 !assert (lasterr()(1:18),"user-defined error")
 !assert (str(1:18),"user-defined error")
"<", s,">" cstrcat ()
!test !eval ("clear a; a; str='';","str = mangle (lasterr);")
 !assert (mangle(lasterr)(1:14),"<`a' undefined")
 !assert (str(1:14),"<`a' undefined")
 !assert (str1(1:13),"`a' undefined")
 !assert (str2(1:13),"`b' undefined")
 !assert (str1(1:13),"`b' undefined")
 !assert (str(1:22),"rethrow: `a' undefined")

Variables

 str = ''
clear b
 str2 = ''
 str1 = lasterr

Function Documentation

!assert ( str(1:22)  ,
"rethrow: `a' undefined"   
)

!assert ( str1(1:13)  ,
"`b' undefined"   
)

!assert ( str2(1:13)  ,
"`b' undefined"   
)

!assert ( str1(1:13)  ,
"`a' undefined"   
)

!assert ( str(1:14)   ) 

!assert ( mangle(lasterr)(1:14)   ) 

!assert ( str(1:18)  ,
"user-defined error"   
)

!assert ( lasterr()(1:18)  ,
"user-defined error"   
)

!assert ( str(1:13)  ,
"`a' undefined"   
)

!assert ( lasterr()(1:13)  ,
"`a' undefined"   
)

!assert ( ,
 
)

!test !eval (  ) 

"<", s, ">" cstrcat (  )  [virtual]

switch default endswitch eval (  )  [virtual]


Variable Documentation

b

str = ''

str1 = lasterr

str2 = ''