nd_macros

Name

nd_macros -- 

Synopsis



#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)

Description

Details

return_if_no_current_trace()

#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.

tr :

variable in which current trace is stored.


return_val_if_no_current_trace()

#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.

tr :

variable in which current trace is stored.

val :

return value when there is no current trace.


ND_GTK_GET()

#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.

res :

result object

widget :

object to query

key :

key name of data to look up


ND_GTK_SET()

#define     ND_GTK_SET(obj, widget, key)

The macro is a wrapper for gtk_object_set_data(), provided for consistency with ND_GTK_GET().

obj :

object

widget :

widget to set object in

key :

key name of data