functionalscript 0.0.460 → 0.0.461
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/com/test/build.f.cjs +2 -3
- package/com/test/cpp/main.cpp +12 -0
- package/com/test/cs/Program.cs +4 -0
- package/com/test/cs/cs.csproj +1 -0
- package/package.json +1 -1
package/com/test/build.f.cjs
CHANGED
|
@@ -69,14 +69,13 @@ const cpp = ({dirname, platform}) => ({
|
|
|
69
69
|
},
|
|
70
70
|
line: [
|
|
71
71
|
flat([
|
|
72
|
-
['clang', '-shared', '-o', output(platform)('
|
|
72
|
+
['clang', '-shared', '-o', output(platform)('testc')],
|
|
73
73
|
flags(platform),
|
|
74
74
|
[`${dirname}/cpp/main.cpp`]]
|
|
75
75
|
),
|
|
76
76
|
],
|
|
77
77
|
})
|
|
78
78
|
|
|
79
|
-
|
|
80
79
|
/** @type {Func} */
|
|
81
80
|
const cs = ({dirname}) => ({
|
|
82
81
|
file: {
|
|
@@ -103,4 +102,4 @@ module.exports = {
|
|
|
103
102
|
cs,
|
|
104
103
|
/** @readonly */
|
|
105
104
|
rust,
|
|
106
|
-
}
|
|
105
|
+
}
|
package/com/test/cpp/main.cpp
CHANGED
package/com/test/cs/Program.cs
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
[DllImport("testrust")]
|
|
4
4
|
static extern int get();
|
|
5
5
|
|
|
6
|
+
[DllImport("testc")]
|
|
7
|
+
static extern int c_get();
|
|
8
|
+
|
|
6
9
|
// See https://aka.ms/new-console-template for more information
|
|
7
10
|
Console.WriteLine("Hello, World!");
|
|
8
11
|
Console.WriteLine(get());
|
|
12
|
+
Console.WriteLine(c_get());
|
package/com/test/cs/cs.csproj
CHANGED