From 91bad5a4f7b0ea7217f0f1fc7cdfa5ede59c1b50 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Sat, 31 Aug 2019 20:53:03 -0600 Subject: [PATCH] regen/embed.pl: Enforce 'b' without 'M' requires 'D' --- regen/embed.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/regen/embed.pl b/regen/embed.pl index 2f84b2d..be0c8f8 100755 --- a/regen/embed.pl +++ b/regen/embed.pl @@ -128,6 +128,8 @@ my ($embed, $core, $ext, $api) = setup_embed(); if $flags =~ /M/ && $flags !~ /p/; die_at_end "For '$plain_func', b and m flags are mutually exclusive" . " (try M flag)" if $flags =~ /b/ && $flags =~ /m/; + die_at_end "For '$plain_func', b flag without M flag requires D flag" + if $flags =~ /b/ && $flags !~ /M/ && $flags !~ /D/; $func = full_name($plain_func, $flags); $ret = ""; -- 1.8.3.1