2002-10-09 09:54:43 +00:00
|
|
|
/** Interface to ObjC runtime for GNUStep
|
2000-10-31 11:05:23 +00:00
|
|
|
Copyright (C) 1995, 1997, 2000 Free Software Foundation, Inc.
|
1995-07-01 19:01:11 +00:00
|
|
|
|
1996-04-17 20:17:45 +00:00
|
|
|
Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu>
|
1995-07-01 19:01:11 +00:00
|
|
|
Date: 1995
|
1995-03-23 03:51:32 +00:00
|
|
|
|
1996-05-12 00:56:10 +00:00
|
|
|
This file is part of the GNUstep Base Library.
|
1995-03-23 03:51:32 +00:00
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Library General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 2 of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Library General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Library General Public
|
|
|
|
License along with this library; if not, write to the Free
|
2005-05-22 03:32:16 +00:00
|
|
|
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
|
2002-10-09 09:54:43 +00:00
|
|
|
|
|
|
|
AutogsdocSource: NSObjCRuntime.m
|
|
|
|
AutogsdocSource: NSLog.m
|
|
|
|
|
1995-03-23 03:51:32 +00:00
|
|
|
*/
|
|
|
|
|
1996-04-17 19:36:35 +00:00
|
|
|
#ifndef __NSObjCRuntime_h_GNUSTEP_BASE_INCLUDE
|
|
|
|
#define __NSObjCRuntime_h_GNUSTEP_BASE_INCLUDE
|
1995-03-23 03:51:32 +00:00
|
|
|
|
2003-07-31 23:49:32 +00:00
|
|
|
#include <GNUstepBase/GSObjCRuntime.h>
|
1995-03-23 03:51:32 +00:00
|
|
|
|
2000-10-31 11:05:23 +00:00
|
|
|
GS_EXPORT NSString *NSStringFromSelector(SEL aSelector);
|
|
|
|
GS_EXPORT SEL NSSelectorFromString(NSString *aSelectorName);
|
|
|
|
GS_EXPORT Class NSClassFromString(NSString *aClassName);
|
|
|
|
GS_EXPORT NSString *NSStringFromClass(Class aClass);
|
|
|
|
GS_EXPORT const char *NSGetSizeAndAlignment(const char *typePtr,
|
|
|
|
unsigned int *sizep, unsigned int *alignp);
|
1995-03-23 03:51:32 +00:00
|
|
|
|
2002-10-09 09:54:43 +00:00
|
|
|
#ifndef NO_GNUSTEP
|
1997-01-06 22:05:50 +00:00
|
|
|
/* Logging */
|
2004-06-22 22:27:39 +00:00
|
|
|
/**
|
|
|
|
* OpenStep spec states that log messages go to stderr, but just in case
|
|
|
|
* someone wants them to go somewhere else, they can implement a function
|
|
|
|
* like this.
|
|
|
|
*/
|
1997-01-06 22:05:50 +00:00
|
|
|
typedef void NSLog_printf_handler (NSString* message);
|
2000-10-31 11:05:23 +00:00
|
|
|
GS_EXPORT NSLog_printf_handler *_NSLog_printf_handler;
|
2002-10-09 09:54:43 +00:00
|
|
|
GS_EXPORT int _NSLogDescriptor;
|
|
|
|
@class NSRecursiveLock;
|
2002-11-09 06:45:31 +00:00
|
|
|
GS_EXPORT NSRecursiveLock *GSLogLock(void);
|
2002-10-09 09:54:43 +00:00
|
|
|
#endif
|
1997-01-06 22:05:50 +00:00
|
|
|
|
2002-10-11 09:14:14 +00:00
|
|
|
GS_EXPORT void NSLog (NSString *format, ...);
|
|
|
|
GS_EXPORT void NSLogv (NSString *format, va_list args);
|
1997-01-06 22:05:50 +00:00
|
|
|
|
1995-03-23 03:51:32 +00:00
|
|
|
#ifndef YES
|
|
|
|
#define YES 1
|
2001-01-03 15:40:22 +00:00
|
|
|
#endif
|
1995-03-23 03:51:32 +00:00
|
|
|
#ifndef NO
|
|
|
|
#define NO 0
|
2001-01-03 15:40:22 +00:00
|
|
|
#endif
|
1995-03-23 03:51:32 +00:00
|
|
|
#ifndef nil
|
|
|
|
#define nil 0
|
2001-01-03 15:40:22 +00:00
|
|
|
#endif
|
1995-03-23 03:51:32 +00:00
|
|
|
|
1996-04-17 19:36:35 +00:00
|
|
|
#endif /* __NSObjCRuntime_h_GNUSTEP_BASE_INCLUDE */
|