Skip to content

Commit 6a4dc33

Browse files
committed
update macro default
1 parent c4e1893 commit 6a4dc33

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

src/main/java/com/shuzijun/leetcode/plugin/model/Constant.java

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,14 @@ public class Constant {
7070
"\\#define LOCAL\n" +
7171
"\n" +
7272
"//leetcode submit region begin(Prohibit modification and deletion)\n" +
73-
"#ifdef LOCAL\n" +
74-
"\\#define eval(x) {auto temp =x; cout << #x << \" = \" << temp << endl;}\n" +
75-
"\\#define test(x,y) if (x!=y) {auto temp=y; cout << \"test failed: \" << #x <<\" expected:\" <<temp<<\" got:\"<<x<<endl;}\n" +
76-
"\\#define log(x) cout <<x<<endl\n" +
77-
"\\#else\n" +
73+
"#ifndef LOCAL\n" +
7874
"\\#define eval(x)\n" +
7975
"\\#define test(x,y)\n" +
8076
"\\#define log(x)\n" +
81-
"#endif\n//"+SUBMIT_REGION_BEGIN+"\n${question.code}\n//"+SUBMIT_REGION_END;
77+
"#endif\n//" + SUBMIT_REGION_BEGIN + "\n${question.code}\n//" + SUBMIT_REGION_END;
78+
79+
80+
//leetcode submit region end(Prohibit modification and deletion)
8281
/**
8382
* 配置文件版本记录
8483
*/
@@ -123,11 +122,11 @@ public class Constant {
123122
/**
124123
* path
125124
*/
126-
public static final String DOC_PATH = "doc"+ File.separator;
127-
public static final String DOC_SOLUTION = "doc"+ File.separator + "solution" + File.separator;
128-
public static final String DOC_CONTENT = "doc"+ File.separator + "content" + File.separator;
129-
public static final String DOC_SUBMISSION = "doc"+ File.separator + "submission" + File.separator;
130-
public static final String DOC_NOTE = "doc"+ File.separator + "note" + File.separator;
125+
public static final String DOC_PATH = "doc" + File.separator;
126+
public static final String DOC_SOLUTION = "doc" + File.separator + "solution" + File.separator;
127+
public static final String DOC_CONTENT = "doc" + File.separator + "content" + File.separator;
128+
public static final String DOC_SUBMISSION = "doc" + File.separator + "submission" + File.separator;
129+
public static final String DOC_NOTE = "doc" + File.separator + "note" + File.separator;
131130

132131

133132
/**

0 commit comments

Comments
 (0)