#define return_if_no_current_trace (tr) #define return_val_if_no_current_trace (tr, val) #define ND_GTK_GET (res, widget, key) #define ND_GTK_SET (obj, widget, key) |
#define return_if_no_current_trace(tr) |
The macro checks whether there is currently a trace being edited. If that is the case, this trace is stored in tr, otherwise the macro returns from the current function.
variable in which current trace is stored.
#define return_val_if_no_current_trace(tr, val) |
This is the same macro as return_if_no_current_trace()
, but
it returns val is there is no current trace.
variable in which current trace is stored.
return value when there is no current trace.
#define ND_GTK_GET(res, widget, key) |
The macro is a wrapper for gtk_object_get_data()
that
also asserts the existance of the pointer on return,
pointing out where in the program an invalid key was
used.
result object
object to query
key name of data to look up
#define ND_GTK_SET(obj, widget, key) |
The macro is a wrapper for gtk_object_set_data()
,
provided for consistency with ND_GTK_GET()
.
object
widget to set object in
key name of data