add:添加his接口放出

This commit is contained in:
taynpg 2025-03-28 12:54:44 +08:00
parent 389837feb3
commit c477dad67e
2 changed files with 13 additions and 0 deletions

View File

@ -212,6 +212,12 @@ void append_his(const std::string& his)
his_pos = history.size();
}
void fc_add_his(const char* his_input)
{
history.push_back(his_input);
his_pos = history.size();
}
std::string up_his()
{
if (history.size() < 1) {

View File

@ -78,6 +78,13 @@ void fc_turn_on();
*/
void fc_turn_off();
/**
* @brief
*
* @param his_input
*/
void fc_add_his(const char* his_input);
/**
* @brief
*/