Tagged: macros

Glib Debugging Macros

glib has a nice set of macros you can use to enforce invariants and preconditions in your code. GTK+ uses these liberally—one of the reasons it’s so stable and easy to use. They all...

Frequently Used Macros on Glib

glib defines a number of familiar macros used in many C programs, shown in Figure 2-1. All of these should be self-explanatory. MIN()/MAX() return the smaller or larger of their arguments. ABS() returns the...