Branch: Tag:

2014-02-14

2014-02-14 20:31:39 by Martin Nilsson <nilsson@opera.com>

New cpp directive #require defines the dependencies for a module.

1169:    werror ("%*s>>> compile_string %O\n", GET_MSG_DEPTH, "", filename);    INC_MSG_DEPTH();   #endif -  program ret = compile(cpp(source, filename||"-", 1, handler, +  string code = cpp(source, filename||"-", 1, handler,    compat_major, compat_minor,    (zero_type(_show_if_constant_errors)?    show_if_constant_errors: -  _show_if_constant_errors)), +  _show_if_constant_errors)); +  program ret; +  if(code) +  ret = compile(code,    handler,    compat_major,    compat_minor,
1970:    return programs[fname] = 0;    }    else { +  if(!ret) +  resolv_debug("low_findprog %s: dependencies failed.\n"); +  else    resolv_debug("low_findprog %s: returning %O\n", fname, ret);    return programs[fname]=ret;    }