Branch: Tag:

2015-10-14

2015-10-14 20:04:48 by Henrik Grubbström (Grubba) <grubba@grubba.org>

master: compile_file() now knows about cpp() soft failures.

cpp() returns zero on failing #require. Don't propagate the zero
the compiler.

1027:    void|object o)   {    AUTORELOAD_CHECK_FILE(filename); -  return compile(cpp(master_read_file(filename), +  string code = cpp(master_read_file(filename),    filename,    1,    handler,    compat_major, -  compat_minor), +  compat_minor); +  if (!code) { +  error("Required feature missing.\n"); +  } +  return compile(code,    handler,    compat_major,    compat_minor,