Commit a754df74 authored by twanvl's avatar twanvl

don't commit code that doesn't compile

parent a3476266
...@@ -331,6 +331,14 @@ ScriptValueP parse_script_value(String const& str) { ...@@ -331,6 +331,14 @@ ScriptValueP parse_script_value(String const& str) {
return script_nil; return script_nil;
} }
/// A filename in the current set
/// functions differently wrt. garbage collection
/*class ScriptLocalFileName : public ScriptString {
public:
ScriptLocalFileName(String const& filename) : ScriptString(filename) {}
// TODO!
};*/
void AnyValue::reflect(Reader& reflector) { void AnyValue::reflect(Reader& reflector) {
if (reflector.formatVersion() < 200001) { if (reflector.formatVersion() < 200001) {
// in older versions, the format was based on the type of the field // in older versions, the format was based on the type of the field
...@@ -354,7 +362,8 @@ void AnyValue::reflect(Reader& reflector) { ...@@ -354,7 +362,8 @@ void AnyValue::reflect(Reader& reflector) {
// image, symbol fields: string that is a filename in the set // image, symbol fields: string that is a filename in the set
String str; String str;
reflector.handle(str); reflector.handle(str);
value = intrusive(new ScriptLocalFileName(str)); //value = intrusive(new ScriptLocalFileName(str));
throw "TODO";
} else if (dynamic_cast<InfoField*>(field)) { } else if (dynamic_cast<InfoField*>(field)) {
// this should never happen, since info fields were not saved // this should never happen, since info fields were not saved
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment