File tree Expand file tree Collapse file tree 1 file changed +0
-28
lines changed
Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Original file line number Diff line number Diff line change 1111
1212#include < plugify/assembly_loader.hpp>
1313
14- #if __has_include(<stacktrace>)
15- #include < stacktrace>
16- #define HAS_STACKTRACE 1
17- #else
18- #define HAS_STACKTRACE 0
19- #endif
20-
2114#define LOG_PREFIX " [RUSTLM] "
2215
2316using namespace rustlm ;
2417using namespace plugify ;
2518
26- namespace {
27- std::vector<std::string_view> Split (std::string_view strv, std::string_view delims) {
28- std::vector<std::string_view> output;
29- size_t first = 0 ;
30-
31- while (first < strv.size ()) {
32- const size_t second = strv.find_first_of (delims, first);
33-
34- if (first != second)
35- output.emplace_back (strv.substr (first, second-first));
36-
37- if (second == std::string_view::npos)
38- break ;
39-
40- first = second + 1 ;
41- }
42-
43- return output;
44- }
45- }
46-
4719Result<InitData> RustLanguageModule::Initialize (const Provider& provider, [[maybe_unused]] const Extension& module ) {
4820 _provider = std::make_unique<Provider>(provider);
4921
You can’t perform that action at this time.
0 commit comments