int id;
};
struct PostponedDefinition {
- PostponedDefinition(int type, int id, std::ptrdiff_t offset, const char *identifier, int linkedType, bool inlined)
- : type(type), id(id), offset(offset), identifier(identifier), linkedType(linkedType), inlined(inlined) { }
- int type;
- int id;
- std::ptrdiff_t offset;
+ PostponedDefinition(
+ char *dest,
+ const char *identifier,
+ int type,
+ bool inlined,
+ bool aggregate)
+ : dest(dest)
+ , identifier(identifier)
+ , type(type)
+ , inlined(inlined)
+ , aggregate(aggregate) { }
+ char *dest;
const char *identifier;
- int linkedType;
+ int type;
bool inlined;
+ bool aggregate;
};
const std::set<std::string> &ExportedIdentifiers() const { return source.Exports(); }
SDL_Surface *GetImage(const std::string &);
bool CanLink(const Value &) const;
- void Postpone(int type, int id, std::ptrdiff_t offset, const std::string &identifier, int linkedType, bool inlined);
+ void Postpone(
+ char *dest,
+ const std::string &identifier,
+ int type,
+ bool inlined = true,
+ bool aggregate = false);
private:
const ParsedSource &source;