lsnes/include/lua/unsaferewind.hpp

26 lines
520 B
C++
Raw Normal View History

#ifndef _lua__unsaferewind__hpp__included__
#define _lua__unsaferewind__hpp__included__
#include "library/lua-base.hpp"
2013-09-27 10:36:19 +03:00
#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;
2013-09-27 10:36:19 +03:00
std::string print()
{
return (stringfmt() << "to frame " << frame).str();
}
};
#endif