4 * Created by Arno Bakker
5 * Copyright 2010-2012 TECHNISCHE UNIVERSITEIT DELFT. All rights reserved.
9 #ifndef SWIFT_SERIALIZE_H_
10 #define SWIFT_SERIALIZE_H_
14 #define fprintf_retiffail(...) { if (fprintf(__VA_ARGS__) < 0) { return -1; }}
15 #define fscanf_retiffail(...) { if (fscanf(__VA_ARGS__) == EOF) { return -1; }}
19 virtual int serialize(FILE *fp) = 0;
20 virtual int deserialize(FILE *fp) = 0;
23 #endif /* SWIFT_SERIALIZE_H_ */