some bug fix
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good

This commit is contained in:
Nishi 2026-09-28 22:25:16 +09:00
commit 4fe57c6d96
4 changed files with 10 additions and 4 deletions

View file

@ -221,6 +221,8 @@ new_example("examples/basic/subwindow");
new_example("examples/basic/tab");
new_example("examples/basic/document");
#new_example("examples/doom/mwdoom", "", 1);
if (param_get("opengl")) {
new_example("examples/gldemos/boing", $gl_libs);
new_example("examples/gldemos/clock", $gl_libs);

View file

@ -41,9 +41,12 @@ sub add_libs {
}
sub new_example {
if (@_ == 2) {
if (@_ >= 2) {
$examples_libs{"$_[0]${executable_suffix}"} = $_[1];
}
if (@_ >= 3) {
$examples_all{"$_[0]${executable_suffix}"} = $_[2];
}
push(@examples_targets, "${_[0]}${executable_suffix}");
}