diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-03-30 21:22:29 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-03-30 21:22:29 -0700 |
commit | 66b97b4d923274e1b6d2fd97df16cb73d820169b (patch) | |
tree | 9d05c3e8301381608d9619eae976c5459fbfa5d2 /cpp/026new | |
parent | a7b6abf6262c1ac556c2cf9a5890eccb4d6b6872 (diff) | |
download | mu-66b97b4d923274e1b6d2fd97df16cb73d820169b.tar.gz |
996 - string literals
Diffstat (limited to 'cpp/026new')
-rw-r--r-- | cpp/026new | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cpp/026new b/cpp/026new index ffb4429a..1991be5b 100644 --- a/cpp/026new +++ b/cpp/026new @@ -27,9 +27,11 @@ Type_number["type"] = 0; if (inst.operation == Recipe_number["new"]) { // first arg must be of type 'type' assert(inst.ingredients.size() >= 1); +//? cout << inst.ingredients[0].to_string() << '\n'; //? 1 assert(isa_literal(inst.ingredients[0])); - assert(inst.ingredients[0].properties[0].second[0] == "type"); - inst.ingredients[0].value = Type_number[inst.ingredients[0].name]; + if (inst.ingredients[0].properties[0].second[0] == "type") { + inst.ingredients[0].value = Type_number[inst.ingredients[0].name]; + } trace("new") << inst.ingredients[0].name << " -> " << inst.ingredients[0].value; } |