MCPcopy Create free account
hub / github.com/WasmVM/WasmVM / proc_argc

Function proc_argc

host/sysenv/sys_proc.cpp:30–32  ·  view source on GitHub ↗

argc() -> i32 Returns the number of arguments passed on the wasmvm command line.

Source from the content-addressed store, hash-verified

28// argc() -> i32
29// Returns the number of arguments passed on the wasmvm command line.
30static std::vector<Value> proc_argc(Stack& stack) {
31 return {Value(i32_t(wasmvm_args.size()))};
32}
33
34// argv_len(idx:i32) -> i32
35// Returns the byte length of argument[idx] (not including null terminator),

Callers

nothing calls this directly

Calls 1

ValueClass · 0.85

Tested by

no test coverage detected