Using CHANNEL_PRINTS to transfer printbuffers to stdout is now working.
This commit is contained in:
@@ -218,7 +218,12 @@ public:
|
||||
// DRIVER: this merely sets a flag, which the driver will notice later,
|
||||
// causing the driver to update the lua source.
|
||||
//
|
||||
void rescan_lua_source(bool b);
|
||||
void rescan_lua_source(bool b) { rescan_lua_source_ = b; }
|
||||
|
||||
// Set the flag to indicate that you have something you want to
|
||||
// print. This will trigger the driver to access CHANNEL_PRINTS.
|
||||
//
|
||||
void set_have_prints(bool b) { have_prints_ = b; }
|
||||
|
||||
// Set the world pointer and the actor ID.
|
||||
//
|
||||
@@ -274,6 +279,7 @@ public:
|
||||
bool drv_get_outgoing_empty(uint32_t chid) const;
|
||||
void drv_get_console_prompt(uint32_t *len, const char **data) const;
|
||||
double drv_get_clock() const;
|
||||
bool drv_get_have_prints() const;
|
||||
bool drv_get_rescan_lua_source() const;
|
||||
bool drv_get_stop_driver() const;
|
||||
int64_t drv_get_actor_id() const;
|
||||
@@ -310,6 +316,7 @@ private:
|
||||
StreamBuffer call_function_retpk_;
|
||||
bool rescan_lua_source_;
|
||||
double clock_;
|
||||
bool have_prints_;
|
||||
bool stop_driver_;
|
||||
eng::string console_prompt_;
|
||||
friend class Channel;
|
||||
|
||||
Reference in New Issue
Block a user