Use ring buffer for script log line data

This commit is contained in:
Jonathan G Rennison
2023-08-18 18:39:54 +01:00
parent 7fb815aad8
commit a403a0c8e3

View File

@@ -10,7 +10,7 @@
#ifndef SCRIPT_LOG_TYPES_HPP
#define SCRIPT_LOG_TYPES_HPP
#include <deque>
#include "../../core/ring_buffer.hpp"
namespace ScriptLogTypes {
/**
@@ -41,7 +41,7 @@ namespace ScriptLogTypes {
* This has no use for you, as script writer.
* @api -all
*/
using LogData = std::deque<LogLine>; ///< The log type
using LogData = ring_buffer<LogLine>; ///< The log type
};
#endif /* SCRIPT_LOG_TYPES_HPP */