File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
core/nativeaot/NativeLibrary Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -8,13 +8,13 @@ namespace NativeLibrary;
88
99public 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
You can’t perform that action at this time.
0 commit comments