#include <stdlib.h>
#include <glib-object.h>
Defines | |
#define | QUOTE(x) #x |
Variables | |
char * | macro_str_NULL = $quote$ NULL $quote$ |
String representation of NULL symbolic constant. | |
char * | macro_str_G_TYPE_OBJECT = $quote$ G_TYPE_OBJECT $quote$ |
String representation of G_TYPE_OBJECT symbolic constant. |
We must preprocess before gfront translates to learn all the types so we can parse correctly, and we cannot preprocess again after we have lost the preprocessors file inclusion state and may have duplicate includes.
This file must be preprocessed in the target environment then linked with the gfront binary. This will provide gfront with the appropriate strings for the macro tokens it must emit.
A currently used hack is to run the this file through sed between preprocessing and compilation to wrap the macro expansions in quotes. It would be nice if we could make CPP do this itself, but I don't know how.