Skip to content

__print_struct_array_contents__

builtin · libnexusinterp/nexus-value/ov-struct-proprietary.cc

: val = __print_struct_array_contents__ ()
: old_val = __print_struct_array_contents__ (new_val)
: old_val = __print_struct_array_contents__ (new_val, "local")

Read or change whether the element values of a structure array are shown when it is displayed.

With no argument the current setting is returned. Supplying new_val sets it and returns the previous value. While the flag is on, the stored values of each element of a structure array are printed; while off, only the field names are shown. The flag has no bearing on a scalar structure, whose values are always printed, and in either case the depth shown is still bounded by __struct_levels_to_print__.

Invoked inside a function with a trailing "local" argument, the new setting applies only to that function and anything it calls, and the previous setting is restored automatically when the function returns.