mod/maxgui.mod/fltkmaxgui.mod/src/Fl_Menu_.cxx
void Fl_Menu_::clear() {
  if (alloc) {
    if (alloc>1) for (int i = size(); i--;)
      if (menu_[i].text) free((void*)menu_[i].text);
    if (this == fl_menu_array_owner)
      fl_menu_array_owner = 0;
    else
      delete[] menu_;
    menu_ = 0;
    value_ = 0;
    alloc = 0;
  }
}
/**
  Same as menu(NULL), set the array pointer to null, indicating
  a zero-length menu.
  
  Menus must not be cleared during a callback to the same menu.
*/
Same as menu(NULL), set the array pointer to null, indicating
a zero-length menu.

Menus must not be cleared during a callback to the same menu.
Same as menu ( NULL ) set the array pointer to null indicating a zero - length menu . Menus must not be cleared during a callback to the same menu .
void Fl_Menu_::clear() {
  if (alloc) {
    if (alloc>1) for (int i = size(); i--;)
      if (menu_[i].text) free((void*)menu_[i].text);
    if (this == fl_menu_array_owner)
      fl_menu_array_owner = 0;
    else
      delete[] menu_;
    menu_ = 0;
    value_ = 0;
    alloc = 0;
  }
}
void Fl_Menu_ :: clear ( ) { if ( alloc ) { if ( alloc > 1 ) for ( int i = size ( ) ; i -- ; ) if ( menu_ [ i ] . text ) free ( ( void * ) menu_ [ i ] . text ) ; if ( this == fl_menu_array_owner ) fl_menu_array_owner = 0 ; else delete [ ] menu_ ; menu_ = 0 ; value_ = 0 ; alloc = 0 ; } }
Same as menu(NULL), set the array pointer to null, indicating
a zero-length menu.
Same as menu ( NULL ) set the array pointer to null indicating a zero - length menu .