Skip to content

Commit

Permalink
Save squirrel table to string
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbi committed Sep 6, 2023
1 parent c4708e9 commit b5fc30f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/squirrel/serialize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <sexp/util.hpp>

#include "squirrel/squirrel_error.hpp"
#include "squirrel/squirrel_util.hpp"
#include "util/log.hpp"
#include "util/reader_mapping.hpp"
#include "util/writer.hpp"
Expand Down Expand Up @@ -133,6 +134,9 @@ void save_squirrel_table(HSQUIRRELVM vm, SQInteger table_idx, Writer& writer)
writer.end_list(key);
break;
}
case OT_ARRAY:
writer.write(key, squirrel2string(vm, -1));
break;
case OT_CLOSURE:
break; // ignore
case OT_NATIVECLOSURE:
Expand Down

0 comments on commit b5fc30f

Please sign in to comment.