My favorites | Sign in
Project Home Downloads Wiki Issues Source
Repository:
Checkout   Browse   Changes   Clones  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/* Copyright (c) 2006-2007 Christopher J. W. Lloyd

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#import "ObjCException.h"

#import <stdarg.h>
#import <stdio.h>

void OBJCLog(const char *format,...) {
va_list arguments;

va_start(arguments,format);

fprintf(stderr,"ObjC:");
vfprintf(stderr,format,arguments);
fprintf(stderr,"\n");
fflush(stderr);
va_end(arguments);
}

void OBJCPartialLog(const char *format,...) {
va_list arguments;

va_start(arguments,format);

fprintf(stderr,"ObjC:");
vfprintf(stderr,format,arguments);
fflush(stderr);
va_end(arguments);
}

void OBJCFinishLog(const char *format,...) {
va_list arguments;

va_start(arguments,format);

vfprintf(stderr,format,arguments);
fprintf(stderr,"\n");
fflush(stderr);
va_end(arguments);
}

void OBJCRaiseException(const char *name,const char *format,...) {
va_list arguments;

va_start(arguments,format);

fprintf(stderr,"ObjC:%s:",name);
vfprintf(stderr,format,arguments);
fprintf(stderr,"\n");
fflush(stderr);
va_end(arguments);
}

Change log

6b7bb1d4a561 by cocotron on Mar 17, 2010   Diff
moved objc/ files out of Foundation and
into objc/ project directory
Go to: 
Project members, sign in to write a code review

Older revisions

19b717905d14 by cocotron on Mar 17, 2010   Diff
- objc reorganization towards
isolation of runtime from Foundation
- removed use of libffi for forwarding
- removed KVO notifications from
objc_setProperty, property access goes
...
59bf2cfdc0df by cocotron on May 21, 2009   Diff
More NS(U)Integer conversion, missing
va_end's
af36fb700cd3 by cocotron on Apr 6, 2009   Diff
Updated towards Objective-C 2.0
runtime API and some decoupling of
objc runtime from Foundation
- added 2.0 objc/runtime.h, message.h
with most of the declarations
...
All revisions of this file

File info

Size: 2054 bytes, 57 lines
Powered by Google Project Hosting