//___________________________________________________________________________________________________________nFO
// "sys_osx.m" - MacOS X system functions.
//
// Written by:	Axel 'awe' Wefers		[mailto:awe@fruitz-of-dojo.de].
//		©2001-2002 Fruitz Of Dojo 	[http://www.fruitz-of-dojo.de].
//
// QuakeȘ is copyrighted by id software	[http://www.idsoftware.com].
//
//________________________________________________________________________________________________________mACROS

#pragma mark =Macros=

#define SYS_CHECK_MALLOC(MEM_PTR)	if ((MEM_PTR) == NULL)					     	      \
                                        {							     	      \
                                            Sys_Error ("Out of memory!");			     	      \
                                        }

#define SYS_CHECK_MOUSE_ENABLED()	if ((gVidDisplayFullscreen == NO && _windowed_mouse.value == 0.0f) || \
                                            gInMouseEnabled == NO || gVidIsMinimized == YES ||		      \
                                            [NSApp isActive] == NO)  			    		      \
                                        {								      \
                                            return;							      \
                                        }

#pragma mark -

//_____________________________________________________________________________________________________vARIABLES

#pragma mark =Variables=

extern SInt32		gSysArgCount;
extern char **		gSysArgValues;

#pragma mark -

//___________________________________________________________________________________________fUNCTION_pROTOTYPES

#pragma mark =Function Prototypes=

void *		Sys_GetProcAddress (const char *theName, Boolean theSafeMode);
char *		Sys_GetClipboardData (void);
void	 	Sys_DoEvents (NSEvent *, NSEventType);
void		Sys_CheckForIDDirectory (void);
void		Sys_SwitchCase (char *, UInt16);
void		Sys_FixFileNameCase (char *);
double		Sys_FloatTime (void);
char *		Sys_sprintf (char *, ...);
double		Sys_FloatTime (void);

//___________________________________________________________________________________________________________eOF
