lsnes/include/lua/unsaferewind.hpp
2014-03-31 11:31:25 +03:00

25 lines
520 B
C++

#ifndef _lua__unsaferewind__hpp__included__
#define _lua__unsaferewind__hpp__included__
#include "library/lua-base.hpp"
#include "library/string.hpp"
struct lua_unsaferewind
{
lua_unsaferewind(lua::state& L);
static size_t overcommit() { return 0; }
std::vector<char> state;
uint64_t frame;
uint64_t lag;
uint64_t ptr;
uint64_t secs;
uint64_t ssecs;
std::vector<uint32_t> pollcounters;
std::vector<char> hostmemory;
std::string print()
{
return (stringfmt() << "to frame " << frame).str();
}
};
#endif