Polyman Documentation - v3.1.0
    Preparing search index...

    Function ensureConfigSourcesExist

    • Checks that every source file Config.json names exists: the validator, the checker (unless it is a standard one shipped with polyman), the generators and the solutions. Paths are resolved against the current directory, as the compile steps do. All missing files are reported in one error, so the setter can fix them in one go instead of meeting them one compile step at a time.

      Parameters

      • config: default

        Parsed Config.json

      Returns void

      If any named source file does not exist

      ensureConfigSourcesExist(readConfigFile());
      // throws: Config.json names source files that do not exist:
      // - validator file not found: val.cpp