Update Breaking Features in Version 6: resid authored by Johannes Pfeifer's avatar Johannes Pfeifer
...@@ -14,14 +14,35 @@ end; ...@@ -14,14 +14,35 @@ end;
A macro-processor variable defined without a value will now be equal to `true` (it would previously be equal to `1`). A macro-processor variable defined without a value will now be equal to `true` (it would previously be equal to `1`).
This affects lines such as: This affects lines such as:
``` ```
@#define var @#define var
``` ```
in a `.mod` file. in a `.mod` file.
This also affects variable defined on the `dynare` command line, such as: This also affects variable defined on the `dynare` command line, such as:
``` ```
dynare myfile.mod -Dvar dynare myfile.mod -Dvar
``` ```
This change should have no impact in most cases, since variable thus defined are typically tested with `@#ifdef`/`@#ifndef` (in which case their value does not matter). This change should have no impact in most cases, since variable thus defined are typically tested with `@#ifdef`/`@#ifndef` (in which case their value does not matter).
# Changes related to `resid`
The `resid`-command now only accepts the new `non_zero`-option. The old syntax
```
resid(1);
```
will trigger an error
> syntax error, unexpected INT_NUMBER, expecting NON_ZERO
and needs to be replaced by
```
resid;
```
\ No newline at end of file