Method: Voodoo::AMD64NasmGenerator#number_of_stack_arguments
- Defined in:
- lib/voodoo/generators/amd64_nasm_generator.rb
#number_of_stack_arguments(n = @environment.args) ⇒ Object
Calculates the number of stack arguments, given the total number of arguments.
346 347 348 349 |
# File 'lib/voodoo/generators/amd64_nasm_generator.rb', line 346 def number_of_stack_arguments n = @environment.args x = n - @NREG_ARGS x < 0 ? 0 : x end |