mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
A script can now be imported in the console. Moved all the MicroPython functions to python/port files. Change-Id: I0a23e8cb20005719b800e81470e1c574c702c3b7
22 lines
337 B
C++
22 lines
337 B
C++
#ifndef CODE_SCRIPT_H
|
|
#define CODE_SCRIPT_H
|
|
|
|
#include <escher.h>
|
|
|
|
namespace Code {
|
|
|
|
class Script {
|
|
public:
|
|
Script(char * textBuffer = nullptr, size_t sizeOfBuffer = 0);
|
|
const char * readOnlyContent() const;
|
|
char * editableContent();
|
|
size_t bufferSize() const;
|
|
private:
|
|
size_t m_bufferSize;
|
|
char * m_textBuffer;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|