main.h 615 B

12345678910111213141516171819
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. #ifndef CARBON_EXPLORER_MAIN_H_
  5. #define CARBON_EXPLORER_MAIN_H_
  6. #include "llvm/ADT/StringRef.h"
  7. namespace Carbon {
  8. // Runs explorer. relative_prelude_path must be POSIX-style, not native, and
  9. // will be translated to native.
  10. auto ExplorerMain(int argc, char** argv, void* static_for_main_addr,
  11. llvm::StringRef relative_prelude_path) -> int;
  12. } // namespace Carbon
  13. #endif // CARBON_EXPLORER_MAIN_H_