Gama C Library
Gama C API Documentation
gmg.h File Reference

Provides a generic macro for generating debug string representations of Gama types. More...

Go to the source code of this file.

Macros

#define gmg(type, obj)
 Generic macro to get a string representation of a Gama type for debugging.

Detailed Description

Provides a generic macro for generating debug string representations of Gama types.

This header defines a convenient macro gmg that dispatches to type-specific formatting functions (e.g., gmg_color, gmg_pos3) to convert Gama data structures into human-readable strings for debugging purposes.

Macro Definition Documentation

◆ gmg

#define gmg ( type,
obj )
Value:
gmg_##type(obj)

Generic macro to get a string representation of a Gama type for debugging.

This macro calls a type-specific formatting function (e.g., gmg_color, gmg_pos3) to convert a Gama object into a string. The actual formatting functions are typically defined in the respective type's header or in debug.h.

Parameters
typeThe base name of the type's formatting function (e.g., color, pos3).
objThe object instance to convert to a string.