![]() |
BlitzMax Extended
0.8.11
Pushing Blitz to the Max.
|
00001 00009 #ifndef BLITZ_APP_H 00010 #define BLITZ_APP_H 00011 00012 #include "_common.h" 00013 00014 BB_BEGIN_DECLS 00015 00022 extern BBString* bbAppDir; 00023 00030 extern BBString* bbAppFile; 00031 00042 extern BBString* bbAppTitle; 00043 00048 extern BBString* bbLaunchDir; 00049 00058 extern BBArray* bbAppArgs; 00059 00060 extern void** bbGCStackTop; 00061 00071 void bbEnd(); 00072 00080 void bbOnEnd(void (*callback)()); 00081 00089 BBString* bbReadStdin(); 00090 00100 void bbWriteStdout(const BBString *str); 00101 00111 void bbWriteStderr(const BBString *str); 00112 00123 void bbDelay(BBInt millisecs); 00124 00132 BBInt bbMilliSecs(); 00133 00142 BBBool bbIsMainThread(); 00143 00144 /* Starts the GC and threading environment. Also initializes 00145 * the global application variables: 00146 * 00147 * - bbAppDir 00148 * - bbAppFile 00149 * - bbAppTitle 00150 * - bbLaunchDir 00151 * - bbAppArgs 00152 */ 00153 void bbStartup(int argc, char *argv[], void *dummy1, void *dummy2); 00154 00155 BB_END_DECLS 00156 00157 #endif // BLITZ_APP_H