Can now use /CPL to reload lua source
This commit is contained in:
@@ -30,6 +30,11 @@ StreamBuffer::StreamBuffer(const char *s, int64_t size) {
|
||||
write_cursor_ = buf_hi_;
|
||||
}
|
||||
|
||||
StreamBuffer::StreamBuffer(const std::string &src) {
|
||||
init(true, false, const_cast<char *>(src.c_str()), src.size());
|
||||
write_cursor_ = buf_hi_;
|
||||
}
|
||||
|
||||
StreamBuffer::~StreamBuffer() {
|
||||
if (owned_ && (buf_lo_ != 0)) free(buf_lo_);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user