doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Functions | Variables
main.cpp File Reference
#include "../idlib/precompiled.h"
#include "../sys/sys_local.h"
#include "TypeInfoGen.h"

Go to the source code of this file.

Classes

class  idCommonLocal
 

Macros

#define STDIO_PRINT(pre, post)
 

Functions

void Sys_Mkdir (const char *path)
 
ID_TIME_T Sys_FileTimeStamp (FILE *fp)
 
const char * Sys_DefaultCDPath (void)
 
const char * Sys_DefaultBasePath (void)
 
const char * Sys_DefaultSavePath (void)
 
int Sys_ListFiles (const char *directory, const char *extension, idStrList &list)
 
void Sys_CreateThread (xthread_t function, void *parms, xthreadPriority priority, xthreadInfo &info, const char *name, xthreadInfo *threads[MAX_THREADS], int *thread_count)
 
void Sys_DestroyThread (xthreadInfo &info)
 
void Sys_EnterCriticalSection (int index)
 
void Sys_LeaveCriticalSection (int index)
 
void Sys_WaitForEvent (int index)
 
void Sys_TriggerEvent (int index)
 
int main (int argc, char **argv)
 

Variables

idSessionsession = NULL
 
idDeclManagerdeclManager = NULL
 
idEventLoopeventLoop = NULL
 
idCVar com_developer ("developer","0", CVAR_BOOL|CVAR_SYSTEM,"developer mode")
 
idCommonLocal commonLocal
 
idCommoncommon = &commonLocal
 
xthreadInfog_threads [MAX_THREADS]
 
int g_thread_count
 
idSysLocal sysLocal
 
idSyssys = &sysLocal
 

Macro Definition Documentation

#define STDIO_PRINT (   pre,
  post 
)
Value:
va_list argptr; \
va_start( argptr, fmt ); \
printf( pre ); \
vprintf( fmt, argptr ); \
printf( post ); \
va_end( argptr )

Definition at line 49 of file main.cpp.

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 254 of file main.cpp.

void Sys_CreateThread ( xthread_t  function,
void parms,
xthreadPriority  priority,
xthreadInfo info,
const char *  name,
xthreadInfo threads[MAX_THREADS],
int thread_count 
)

Definition at line 195 of file main.cpp.

const char* Sys_DefaultBasePath ( void  )

Definition at line 186 of file main.cpp.

const char* Sys_DefaultCDPath ( void  )

Definition at line 185 of file main.cpp.

const char* Sys_DefaultSavePath ( void  )

Definition at line 187 of file main.cpp.

void Sys_DestroyThread ( xthreadInfo info)

Definition at line 196 of file main.cpp.

void Sys_EnterCriticalSection ( int  index)

Definition at line 198 of file main.cpp.

ID_TIME_T Sys_FileTimeStamp ( FILE *  fp)

Definition at line 107 of file main.cpp.

void Sys_LeaveCriticalSection ( int  index)

Definition at line 199 of file main.cpp.

int Sys_ListFiles ( const char *  directory,
const char *  extension,
idStrList list 
)

Definition at line 188 of file main.cpp.

void Sys_Mkdir ( const char *  path)

Definition at line 106 of file main.cpp.

void Sys_TriggerEvent ( int  index)

Definition at line 202 of file main.cpp.

void Sys_WaitForEvent ( int  index)

Definition at line 201 of file main.cpp.

Variable Documentation

idCVar com_developer("developer","0", CVAR_BOOL|CVAR_SYSTEM,"developer mode")
idCommon* common = &commonLocal

Definition at line 96 of file main.cpp.

idCommonLocal commonLocal

Definition at line 95 of file main.cpp.

idDeclManager* declManager = NULL

Definition at line 36 of file main.cpp.

idEventLoop* eventLoop = NULL

Definition at line 37 of file main.cpp.

int g_thread_count

Definition at line 193 of file main.cpp.

xthreadInfo* g_threads[MAX_THREADS]

Definition at line 192 of file main.cpp.

idSession* session = NULL

Definition at line 35 of file main.cpp.

idSys* sys = &sysLocal

Definition at line 243 of file main.cpp.

idSysLocal sysLocal

Definition at line 242 of file main.cpp.