Skip to content

Commit 36603da

Browse files
committed
update docs
1 parent c10e6ea commit 36603da

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

docs/zh/api/scripts/target-instance.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,30 @@ target:is_arch("x86")
212212
target:is_arch("x64", "x86_64")
213213
```
214214

215+
## target:is_arch64
216+
217+
- 当前架构是否是 64 位架构
218+
219+
#### 函数原型
220+
221+
::: tip API
222+
```lua
223+
target:is_arch64()
224+
```
225+
:::
226+
227+
#### 参数说明
228+
229+
此函数不需要参数。
230+
231+
#### 用法说明
232+
233+
234+
```lua
235+
-- 当前架构是否是 64 位架构?
236+
target:is_arch64()
237+
```
238+
215239
## target:targetfile
216240

217241
- 获取目标文件路径

0 commit comments

Comments
 (0)