Code opschonen, toevoegen documentatie
[rodin/chimara.git] / src / glk.c
1 #include <glib.h>
2 #include <gtk/gtk.h>
3
4 #include "glk.h"
5
6 /**
7  * glk_exit:
8  * 
9  * Shuts down the Glk program. This function does not return.
10  *
11  * If you print some text to a window and then shut down your program, you can
12  * assume that the player will be able to read it.
13  *
14  * <note><para>
15  *  You should only shut down your program with glk_exit() or by returning from
16  *  your glk_main() function. If you call the ANSI <function>exit()</function> 
17  *  function, bad things may happen. This Glk library is designed for multiple 
18  *  sessions, for example, and you would be cutting off all the sessions instead
19  *  of just yours. You would also prevent final text from being visible to the 
20  *  player.
21  * </para></note>
22  */
23 void
24 glk_exit(void)
25 {
26         g_thread_exit(NULL);
27 }
28