Skip to content
← Back

src/semantic/pinvoke_import.ghul

1
namespace Semantic is
2
// What a method's `DllImport` says: the module to call into, the
3
// name to look up in it, and the flags the runtime marshals by.
4
//
5
// The name is the method's own, as written, unless `EntryPoint`
6
// gives another: a native symbol is matched by exact spelling, so
7
// nothing here converts case the way a reflected .NET name is
8
// converted on the way in.
9
class PINVOKE_IMPORT(
10
module: string public,
11
entry_point: string public,
12
import_attributes: System.Reflection.MethodImportAttributes public
13
) is si
14
si