Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Declined Plugins: respect negative return from _VARIABLE (as for f_FUNCTION) ...

May
13,594
201
... and abort the command. If that's impossible or hard (or I'm not seeing all the consequences), it's no big deal. I've worked around it by doing

Code:
psz[0] = UNICODE_NULL; // psz is _VARIABLE's argument

but if it happens when I say echo %_VARIABLE, I have to see "ECHO is OFF".
 
Functions have an option to abort the command because something could have gone seriously wrong inside the function that makes it impossible or inadvisable to continue.

But with variables, there has never been any concept of a variable so bad that TCC has to abort the command.
 
Back
Top