1 <!-- ##### SECTION Title ##### -->
4 <!-- ##### SECTION Short_Description ##### -->
5 Handling global variables so that it works on simulator
7 <!-- ##### SECTION Long_Description ##### -->
8 <para>In GRAS, using globals is forbidden since the daemons will
9 sometimes run as a thread inside the same process. So, you have to put
10 all globals in a structure, and tell GRAS that it's your globals.</para>
12 <para>Use the grasUserdataNew() macro to create a new user data (or malloc it
13 yourself and use grasUserdataSet yourself), and grasUserdataGet() to
14 retrive a reference to it.</para>
16 <!-- ##### SECTION See_Also ##### -->