Debian Codegraph @

src/utils.h

raw symbols SCIP
1 #pragma once
2
3 #include "uv.h"
4
5 #include <string>
6
7 #define BEGIN_CPP try {
8
9 #define END_CPP \
10 } \
11 catch (std::exception & e) { \
12 Rf_error("C++ exception: %s", e.what()); \
13 }
14
15 // If dirent is not unknown, just return it, otherwise stat the file and get
16 // the filetype from that.
17 uv_dirent_type_t get_dirent_type(
18 const char* path,
19 const uv_dirent_type_t& entry_type = UV_DIRENT_UNKNOWN,
20 bool fail = true);
21
22 std::string path_tidy_(const std::string& in);