エントリポイントの指定をします。
staticな関数の中にのみ置くことができます。
エントリポイントとする関数の名前がMainやWinMainである必要はありません。
グローバル関数をエントリポイントに。
1
2
3
4
5
6
7
8
9
|
-
|
|
|
|
|
|
!
|
.assemble x{}
.method static hoge(){
.entrypoint
ldstr "water on stone"
call void class [mscorlib]System.Console::WriteLine(string)
ret
}
|
クラス中の関数をエントリポイントに。
1
2
3
4
5
6
7
8
9
10
11
|
-
-
|
|
|
|
|
|
!
!
|
.assemble x{}
.class hoge{
.method static void talk(){
.entrypoint
ldstr "water on concrete"
call void class [mscorlib]System.Console::WriteLine(string)
ret
}
}
|
|
Last-modified: Mon, 27 Jul 2009 03:06:25 JST