Mercurial > octave
comparison libinterp/octave-value/ov-classdef.cc @ 28516:70d155283f33
maint: merge stable to default.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 29 Jun 2020 15:12:39 -0400 |
parents | b743a63e2dab 49f4d7814760 |
children | 960ea0ccff98 |
comparison
equal
deleted
inserted
replaced
28507:d2a9728aed58 | 28516:70d155283f33 |
---|---|
435 octave::cdef_class cls (object); | 435 octave::cdef_class cls (object); |
436 | 436 |
437 if (meth_name.empty ()) | 437 if (meth_name.empty ()) |
438 return cls.doc_string (); | 438 return cls.doc_string (); |
439 | 439 |
440 octave_value ov_meth = cls.get_method (meth_name); | 440 octave::cdef_method cdef_meth = cls.find_method (meth_name); |
441 | 441 |
442 if (ov_meth.is_defined ()) | 442 if (cdef_meth.ok ()) |
443 { | 443 return cdef_meth.get_doc_string (); |
444 octave_function *fcn = ov_meth.function_value (); | |
445 | |
446 if (fcn) | |
447 return fcn->doc_string (); | |
448 } | |
449 } | 444 } |
450 | 445 |
451 return ""; | 446 return ""; |
452 } | 447 } |
453 | 448 |