Skip to content
Snippets Groups Projects
Commit 8384cb78 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

add tests for ifndef(cherry picked from commit e1404965)

parent 66f6d5ac
Branches
Tags
No related merge requests found
......@@ -2,7 +2,11 @@
var y, c, k, a, h, b;
varexo e, u;
@#ifndef NOTDEFINED
parameters beta, rho, alpha, delta, theta, psi, tau;
@#else
@#error "IFNDEF PROBLEM"
@#endif
@#ifdef NOTDEFINED
@#error "IFDEF PROBLEM"
......@@ -40,11 +44,15 @@ end;
@#define DEFINED=0
@#ifndef DEFINED
@#error "IFNDEF PROBLEM"
@#else
shocks;
var e; stderr 0.009;
var u; stderr 0.009;
var e, u = phi*0.009*0.009;
end;
@#endif
@#ifdef DEFINED
stoch_simul;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment