Skip to content

Commit

Permalink
Testcase for argument name match happening within the macro name
Browse files Browse the repository at this point in the history
  • Loading branch information
ayourtch committed Aug 22, 2016
1 parent 2b9cfbd commit a1cfce4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lcpp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1708,6 +1708,14 @@ function lcpp.test(suppressMsg)
#undef _
issue22 = __FILE__
local assertrue = function(val, msg)
assert(not val, msg)
end
msg = "issue 21 - match corrupting the identifier"
#define _(t, msg) assert(t, msg)
_(true, msg);
#undef _
msg = "#elif test"
Expand Down

0 comments on commit a1cfce4

Please sign in to comment.