2012-05-19 14:37:49 +03:00
|
|
|
#ifndef _lua__unsaferewind__hpp__included__
|
|
|
|
#define _lua__unsaferewind__hpp__included__
|
|
|
|
|
2013-08-21 23:19:20 +03:00
|
|
|
#include "library/luabase.hpp"
|
2013-09-27 10:36:19 +03:00
|
|
|
#include "library/string.hpp"
|
2013-08-21 23:19:20 +03:00
|
|
|
|
2012-05-19 14:37:49 +03:00
|
|
|
struct lua_unsaferewind
|
|
|
|
{
|
2013-08-21 23:19:20 +03:00
|
|
|
lua_unsaferewind(lua_state& L);
|
2012-05-19 14:37:49 +03:00
|
|
|
std::vector<char> state;
|
|
|
|
uint64_t frame;
|
|
|
|
uint64_t lag;
|
|
|
|
uint64_t ptr;
|
|
|
|
uint64_t secs;
|
|
|
|
uint64_t ssecs;
|
|
|
|
std::vector<uint32_t> pollcounters;
|
2013-05-30 04:13:59 +03:00
|
|
|
std::vector<char> hostmemory;
|
2013-09-27 10:36:19 +03:00
|
|
|
std::string print()
|
|
|
|
{
|
|
|
|
return (stringfmt() << "to frame " << frame).str();
|
|
|
|
}
|
2012-05-19 14:37:49 +03:00
|
|
|
};
|
|
|
|
|
2013-05-30 04:13:59 +03:00
|
|
|
#endif
|