aboutsummaryrefslogtreecommitdiffhomepage
path: root/libslang/src/test/inc.sl
blob: 54e3d067539109e71a71987b919379b5aef77d50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
define print (x)
{
   x = string (x);
   () = fputs (x, stdout);
   () = fflush (stdout);
}

define failed ()
{
   variable s = __pop_args (_NARGS);
   s = sprintf (__push_args(s));
   () = fprintf (stderr, "Failed: %s\n", s);
   exit (1);
}