summaryrefslogtreecommitdiff
path: root/serialize.h
diff options
context:
space:
mode:
Diffstat (limited to 'serialize.h')
-rw-r--r--serialize.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/serialize.h b/serialize.h
index f4a7402..2c0b9e3 100644
--- a/serialize.h
+++ b/serialize.h
@@ -4,6 +4,10 @@
#include <stdint.h>
#include <stddef.h>
+#ifndef SERIALIZE_DEFAULT_SIZE
+#define SERIALIZE_DEFAULT_SIZE (256*1024) //default to enough for a Genesis save state
+#endif
+
typedef struct {
size_t size;
size_t storage;