-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix an issue with unescaped values + Add tests
- Loading branch information
1 parent
35c4576
commit f5cf941
Showing
4 changed files
with
44 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
ab | ||
"ab" | ||
C3 | ||
C3() | ||
C4(15) | ||
UNDEFINED |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#include <shell> | ||
|
||
#define TO_STR(%0) #%0 | ||
|
||
#define C1 ab | ||
#define C2 "ab" | ||
#define C3() cd | ||
#define C4(%0) %0 | ||
|
||
public main() { | ||
print(TO_STR(C1)); | ||
print("\n"); | ||
|
||
print(TO_STR(C2)); | ||
print("\n"); | ||
|
||
print(TO_STR(C3)); | ||
print("\n"); | ||
|
||
print(TO_STR(C3())); | ||
print("\n"); | ||
|
||
print(TO_STR(C4(15))); | ||
print("\n"); | ||
|
||
print(TO_STR(UNDEFINED)); | ||
} |