about summary refs log tree commit diff stats
path: root/cpp/025name
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-04-15 10:27:16 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-04-15 10:27:16 -0700
commit7a9b05fa66c97ef912e77e9c7618f4ef198636d0 (patch)
tree91968b29cd1dc9949f3b883707978801ed448c02 /cpp/025name
parentf3bce7176bc15ec04739c61db0d189cbaaaca7d8 (diff)
downloadmu-7a9b05fa66c97ef912e77e9c7618f4ef198636d0.tar.gz
1066 - bugfix: support string literals with colons
Diffstat (limited to 'cpp/025name')
-rw-r--r--cpp/025name5
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/025name b/cpp/025name
index 45fdece2..1c73b16a 100644
--- a/cpp/025name
+++ b/cpp/025name
@@ -40,11 +40,12 @@ void transform_names(const recipe_number r) {
     // Per-recipe Transforms
     // map names to addresses
     for (size_t in = 0; in < inst.ingredients.size(); ++in) {
-//?       cout << "ingredients\n"; //? 1
+//?       cout << "ingredients\n"; //? 2
       if (is_raw(inst.ingredients[in])) continue;
-//?       cout << "ingredient " << inst.ingredients[in].name << '\n'; //? 1
+//?       cout << "ingredient " << inst.ingredients[in].name << '\n'; //? 2
       if (inst.ingredients[in].name == "default-space")
         inst.ingredients[in].initialized = true;
+      assert(!inst.ingredients[in].types.empty());
       if (inst.ingredients[in].types[0]  // not a literal
           && !inst.ingredients[in].initialized
           && inst.ingredients[in].name.find_first_not_of("0123456789-.") != string::npos) {