GLogLevelFlags enum and g_log



Hi,

Passing user-defined level to g_log as second argument would be
against the C standard since second argument is defined as
GLogLevelFlags enum.

Normally it shouldn't be a problem but since glib defined values of
GLogLevelFlags can fit in to 8 bits, sizeof(GLogLevelFlags) could be 1
depending on the compiler.

I would like to know if this has been discussed before?

Thanks,
Umut


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]