File: test_ifndef.mod

package info (click to toggle)
dynare 6.3-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 67,632 kB
  • sloc: cpp: 79,090; ansic: 28,916; objc: 12,430; yacc: 4,528; pascal: 1,993; lex: 1,441; sh: 1,121; python: 634; makefile: 626; lisp: 163; xml: 18
file content (17 lines) | stat: -rw-r--r-- 186 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// test ifndef to prevent regressions like #1747
@#define marco=1
@#ifndef marco
    def=0;
@#else
    def=1;
@#endif

if ~def
    error('ifndef not reached')
end

var x;

model;
x;
end;