Skip to content

Commit ebfb878

Browse files
committed
Add test rsp case at samples/Basic
1 parent f61bceb commit ebfb878

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

samples/Basic/Assets/Scripts/Test03.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ public class Test03 : MonoBehaviour
66
void Start()
77
{
88
GetComponent<Text>().text = "03:" + GetStringLength("Compiler");
9+
#if __COMPILER_OPTION_TEST__
10+
GetComponent<Text>().text += ":OK";
11+
#endif
912
}
1013

1114
int GetStringLength(string str)
@@ -22,4 +25,3 @@ int GetStringLength(string str)
2225
return len;
2326
}
2427
}
25-

samples/Basic/Assets/gmcs.rsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
-unsafe
1+
-unsafe -define:__COMPILER_OPTION_TEST__

samples/Basic/Assets/smcs.rsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
-unsafe
1+
-unsafe -define:__COMPILER_OPTION_TEST__

0 commit comments

Comments
 (0)