get_current_dir.cpp 349 B

123456789101112131415161718192021222324
  1. #include<__vic/fs.h>
  2. #include<iostream>
  3. #include<exception>
  4. #include<cassert>
  5. void run_tests()
  6. {
  7. std::cout << "Current dir is " << __vic::get_current_dir() << '\n';
  8. }
  9. int main()
  10. {
  11. try
  12. {
  13. run_tests();
  14. return 0;
  15. }
  16. catch(const std::exception &ex)
  17. {
  18. std::cerr << ex.what() << '\n';
  19. }
  20. return 1;
  21. }