mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/code] Inline code in console_store
This commit is contained in:
@@ -1,21 +1,10 @@
|
||||
#include "console_store.h"
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
||||
namespace Code {
|
||||
|
||||
static inline int min(int x, int y) { return (x<y ? x : y); }
|
||||
|
||||
ConsoleStore::ConsoleStore() :
|
||||
m_history{0}
|
||||
{
|
||||
}
|
||||
|
||||
void ConsoleStore::clear() {
|
||||
assert(k_historySize > 0);
|
||||
m_history[0] = 0;
|
||||
}
|
||||
|
||||
void ConsoleStore::startNewSession() {
|
||||
if (k_historySize < 1) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user