ObjFW  Diff

Differences From Artifact [784d18a0a4]:

To Artifact [8685793b88]:


166
167
168
169
170
171
172
173

174
175
176

177
178
179
180
181
182
183
184
185
186
187
188
189

190
191
192
193
194
195
196
166
167
168
169
170
171
172

173
174
175

176
177
178
179
180
181
182
183
184
185
186
187
188

189
190
191
192
193
194
195
196







-
+


-
+












-
+








- (void*)pointer
{
	return pointer;
}
@end

@implementation OFOverflowException
@implementation OFOutOfRangeException
+ newWithObject: (id)obj
{
	return [[OFOverflowException alloc] initWithObject: obj];
	return [[OFOutOfRangeException alloc] initWithObject: obj];
}

- initWithObject: (id)obj
{
	return (self = [super initWithObject: obj]);
}

- (char*)cString
{
	if (string != NULL)
		return string;

	asprintf(&string, "ERROR: Overflow in object of class %s!\n",
	asprintf(&string, "ERROR: Value out of range in object of class %s!\n",
	    object != nil ? [object name] : "(null)");

	return string;
}
@end

@implementation OFOpenFileFailedException