|
Gama C Library
Gama C API Documentation
|
Provides macros and functions for debugging output in Gama. More...
#include "3d/position.h"#include "color.h"#include "position.h"#include <stdio.h>#include "3d/mesh.h"Go to the source code of this file.
Macros | |
| #define | gmdi(fn, obj) |
| Macro to print debug information for an object without a newline. | |
| #define | gmdn(fn, obj) |
| Macro to print debug information for an object with a newline. | |
| #define | gmd(fn, obj, e) |
| Generic macro to print debug information for an object. | |
Functions | |
| int | gmd_color (char *s, size_t n, gmColor c) |
| Formats a gmColor into a human-readable string for debugging. | |
| int | gmd_pos3 (char *s, size_t n, gm3Pos p) |
| Formats a gm3Pos (3D position) into a human-readable string for debugging. | |
| int | gmd_pos2 (char *s, size_t n, gmPos p) |
| Formats a gmPos (2D position) into a human-readable string for debugging. | |
| int | gmd_mesh (char *s, size_t n, gm3Mesh m) |
| Formats a gm3Mesh into a human-readable string for debugging. | |
Provides macros and functions for debugging output in Gama.
This file offers utilities to print the state of various Gama data structures to the console, aiding in debugging and development.
| #define gmd | ( | fn, | |
| obj, | |||
| e ) |
Generic macro to print debug information for an object.
This macro calls a specific gmd_ formatting function, prints the result to stdout, and appends an optional end string.
| fn | The debug formatting function to use (e.g., color, pos2, pos3, mesh). |
| obj | The object to print debug information for. |
| e | An optional string to append after the debug output (e.g., "\n"). |
| #define gmdi | ( | fn, | |
| obj ) |
| #define gmdn | ( | fn, | |
| obj ) |
Macro to print debug information for an object with a newline.
| fn | The debug formatting function (e.g., color, pos2, pos3, mesh). |
| obj | The object to print. |
| int gmd_color | ( | char * | s, |
| size_t | n, | ||
| gmColor | c ) |
| int gmd_mesh | ( | char * | s, |
| size_t | n, | ||
| gm3Mesh | m ) |
| int gmd_pos2 | ( | char * | s, |
| size_t | n, | ||
| gmPos | p ) |