From 65361948ca7975553757a0e0df4ac7352413044c Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 14 May 2015 16:04:45 -0700 Subject: 1376 - update github docs --- html/026assert.cc.html | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'html/026assert.cc.html') diff --git a/html/026assert.cc.html b/html/026assert.cc.html index 767382ac..11e9b737 100644 --- a/html/026assert.cc.html +++ b/html/026assert.cc.html @@ -2,7 +2,7 @@ -Mu - 026assert.cc +~/Desktop/s/mu/026assert.cc @@ -15,6 +15,7 @@ body { font-family: monospace; color: #d0d0d0; background-color: #000000; } * { font-size: 1em; } .cSpecial { color: #008000; } .Constant { color: #008080; } +.Comment { color: #8080ff; } .Delimiter { color: #c000c0; } .Special { color: #ff6060; } .Identifier { color: #008080; } @@ -43,11 +44,12 @@ ASSERT, Recipe_number["assert"] = ASSERT; :(before "End Primitive Recipe Implementations") case ASSERT: { - trace("run") << "ingredient 0 is " << current_instruction().ingredients[0].name; - vector<long long int> arg0 = read_memory(current_instruction().ingredients[0]); - assert(arg0.size() == 1); - if (arg0[0] == 0) - raise << current_instruction().ingredients[1].name << '\n'; + assert(ingredients.size() == 2); + assert(ingredients.at(0).size() == 1); // scalar + if (!ingredients.at(0).at(0)) { + assert(isa_literal(current_instruction().ingredients.at(1))); + raise << current_instruction().ingredients.at(1).name << '\n' << die(); + } break; } -- cgit 1.4.1-2-gfad0