Skip to content

Commit 57d8864

Browse files
authored
Update LibraryFunctions.cs (#7040)
1 parent 16b52bb commit 57d8864

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/nativeaot/NativeLibrary/LibraryFunctions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ namespace NativeLibrary;
88

99
public class LibraryFunctions
1010
{
11-
[UnmanagedCallersOnly(EntryPoint = "add")]
11+
[UnmanagedCallersOnly(EntryPoint = "aotsample_add")]
1212
public static int Add(int a, int b)
1313
{
1414
return a + b;
1515
}
1616

17-
[UnmanagedCallersOnly(EntryPoint = "write_line")]
17+
[UnmanagedCallersOnly(EntryPoint = "aotsample_write_line")]
1818
public static int WriteLine(IntPtr pString)
1919
{
2020
// The marshalling code is typically auto-generated by a custom tool in larger projects.
@@ -35,7 +35,7 @@ public static int WriteLine(IntPtr pString)
3535
return 0;
3636
}
3737

38-
[UnmanagedCallersOnly(EntryPoint = "sumstring")]
38+
[UnmanagedCallersOnly(EntryPoint = "aotsample_sumstring")]
3939
public static IntPtr sumstring(IntPtr first, IntPtr second)
4040
{
4141
// Parse strings from the passed pointers

0 commit comments

Comments
 (0)