On Tue, Jul 12, 2016 at 15:48:30 -0500, Robb wrote:
I did do this and it ended up working at first:
coder.cstructname=@()[]
Unfortunately the function sometimes is called with functions that I would
rather be ignored. Such as:
coder.cstructname("foostring", foofunction);
This solution still evaluates the foofunction, really I would like this line
skipped over completely.
I certainly can wrap everything thing in
if exist('OCTAVE_VERSION', 'builtin') == 0,
but I was hoping for something a little more transparent on the matlab side
of things.
Interesting. This would mean parser support for completely ignoring
evaluation of such lines.
In that case, the best you can do at this point is probably something
like
sed -i 's/^\s*coder\./## &/' *.m
and maybe report a bug if you think it's important that Octave grow this
feature in a future version.