Skip to content

Instantly share code, notes, and snippets.

@foxxtrot
Created September 21, 2010 06:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save foxxtrot/589282 to your computer and use it in GitHub Desktop.
Save foxxtrot/589282 to your computer and use it in GitHub Desktop.
.program $assert:areEqual
if (length(args) < 2)
notify(#3, "Not enough Args");
raise(E_ARGS);
endif
msg = "";
{a, b, ?msg} = args;
notify(#3, tostr("a = ", a));
notify(#3, tostr("b = ", b));
notify(#3, tostr("msg = ", msg));
if (a == b)
notify(#3, "match");
return;
else
notify(#3, "error");
raise(E_NONE, msg);
endif
.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment