BlitzMax Extended  0.8.19
Pushing Blitz to the Max.
blitz_app.h
Go to the documentation of this file.
1 
9 #ifndef BLITZ_APP_H
10 #define BLITZ_APP_H
11 
12 #include "_common.h"
13 
14 BB_BEGIN_DECLS
15 
22 extern BBString* bbAppDir;
23 
30 extern BBString* bbAppFile;
31 
40 extern BBString* bbAppTitle;
41 
46 extern BBString* bbLaunchDir;
47 
56 extern BBArray* bbAppArgs;
57 
58 extern void** bbGCStackTop;
59 
69 void bbEnd();
70 
78 void bbOnEnd(void (*callback)());
79 
87 BBString* bbReadStdin();
88 
98 void bbWriteStdout(const BBString *str);
99 
109 void bbWriteStderr(const BBString *str);
110 
121 void bbDelay(BBInt millisecs);
122 
131 
141 
142 /* Starts the GC and threading environment. Also initializes
143  * the global application variables:
144  *
145  * - bbAppDir
146  * - bbAppFile
147  * - bbAppTitle
148  * - bbLaunchDir
149  * - bbAppArgs
150  */
151 void bbStartup(int argc, char *argv[], void *dummy1, void *dummy2);
152 
153 BB_END_DECLS
154 
155 #endif // BLITZ_APP_H