# StackArgsSize
{: .no_toc }

Returns the total size, in bytes, of the arguments passed on the stack of the enclosing procedure.

Syntax: **StackArgsSize()** **As Long**

The result is resolved at compile time and folded into the generated code as a numeric constant. Used inside a **Naked** procedure when the assembly needs to know how much to clean off the stack on return --- for example, to issue the right `ret n` opcode under the `_stdcall` convention.

### See Also

- [StackOffset](/tB/Modules/HiddenModule/StackOffset.md) function
- [Emit](/tB/Modules/HiddenModule/Emit.md), [EmitAny](/tB/Modules/HiddenModule/EmitAny.md) procedures
- [Direct Assembly Insertion](/Features/Advanced/Assembly.md)
