if

来自「make debug tool. You can use this tool t」· 代码 · 共 32 行

TXT
32
字号
#                                                                    -*-perl-*-$description = "Test the if function.\n";$details = "Try various uses of if and ensure they all give the correctresults.\n";open(MAKEFILE, "> $makefile");print MAKEFILE <<EOMAKE;NEQ = \$(subst \$1,,\$2)all:\t\@echo \$(if    ,true,false)\t\@echo \$(if ,true,)\t\@echo \$(if ,true)\t\@echo \$(if z,true,false)\t\@echo \$(if z,true,\$(shell echo hi))\t\@echo \$(if ,\$(shell echo hi),false)\t\@echo \$(if \$(call NEQ,a,b),true,false)\t\@echo \$(if \$(call NEQ,a,a),true,false)\t\@echo \$(if z,true,fal,se) hi\t\@echo \$(if ,true,fal,se)thereEOMAKEclose(MAKEFILE);&run_make_with_options($makefile, "", &get_logfile);$answer = "false\n\n\ntrue\ntrue\nfalse\ntrue\nfalse\ntrue hi\nfal,sethere\n";&compare_output($answer, &get_logfile(1));1;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?