Advanced Guides
Introspection and Debugging
Gama includes a set of functions to help you debug your code.
They include gmd_ functions, like gmd_pos3, gmd_pos2, ... which writes
a string representation of the object.
Gama also includes helper macros which print directly the objects. they include:
gmd: Takes the second part of the function name(e.gpos2instead ofgmd_pos2), the object you want to print and an ending character, like a newline to print right after the object.gmdn: This calls gmd, with a newline as third argument, i.e it prints the object with a '\n' at the end.gmdi: prints the object without a newline at the end.
Several other printing functions exist, and you can have them in the debug.h reference.
