The following is an example of creating a global integer var:
Keep in mind that in another compilation that you were supposed to link after the previous compilation, you also need to declare a global var, but you will have to declare all var with DECL_EXTERNAL (global_var) = 1 in the entire compilation minus the original and only in one compilation (i.e. E. in the original: a compilation that contains the source var), you should only add the tree_PUBLIC (global_var) = 1 property
source share