--- nono/lib/monitor_id.pl 2026/04/29 17:05:19 1.1.1.4 +++ nono/lib/monitor_id.pl 2026/04/29 17:05:48 1.1.1.6 @@ -27,6 +27,12 @@ $hdrfile =~ s/txt$/h/; $srcfile =~ s/txt$/cpp/; + # 先頭に一つダミーエントリを入れる。 + # (あまりサポートしてないけど) wxMac ではメニュー ID が 0 だと死ぬので。 + $id = "ID_MONITOR_zeroth_dummy_for_wxmac"; + $mon_defs .= "\t$id = 0,\n"; + $mon_body .= "\t{ $id, },\n"; + open(IN, $infile) || die "Cannot open infile: ${infile}\n"; while () { # Remove comments. @@ -93,7 +99,7 @@ $srcnew .= $sub_body; $srcnew .= "};\n"; $srcnew .= "\n"; - $srcnew .= "/*static*/ const std::vector>\n"; + $srcnew .= "/*static*/ const std::vector>\n"; $srcnew .= "Monitor::idtext {\n"; $srcnew .= $label_body; $srcnew .= "};\n";