#include "supertux/savegame.hpp"
+#include <algorithm>
+
#include "lisp/lisp.hpp"
#include "lisp/parser.hpp"
#include "lisp/writer.hpp"
{
sq_pushstring(vm, name.c_str(), -1);
sq_newtable(vm);
- if(SQ_FAILED(sq_newslot(vm, -3, SQFalse)))
+ if(SQ_FAILED(sq_createslot(vm, -3)))
{
throw std::runtime_error("failed to create '" + name + "' table entry");
}
// create a new empty state table
sq_pushstring(vm, "state", -1);
sq_newtable(vm);
- if(SQ_FAILED(sq_newslot(vm, -3, SQFalse)))
+ if(SQ_FAILED(sq_createslot(vm, -3)))
{
throw std::runtime_error("Couldn't create state table");
}