An embeddable, thread-safe implementation of the cubescript language
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

19 lines
436 B

#ifndef CS_REPL_HAS_EDIT
/* use nothing (no line editing support) */
#include <optional>
#include <ostd/string.hh>
inline void init_lineedit(cs_state &, ostd::string_range) {
}
inline std::optional<std::string> read_line(cs_state &, cs_svar *pr) {
ostd::write(pr->get_value());
return std::move(ostd::cin.get_line(ostd::appender<std::string>()).get());
}
inline void add_history(cs_state &, ostd::string_range) {
}
#endif