Difference between revisions of "Va end"

From Unofficial QEdit Wiki Guide
Jump to: navigation, search
 
m (Use)
Line 5: Line 5:
  
 
==Use==
 
==Use==
clear the variable argument list. This <b>MUST</b> be run after every [[va_start]].
+
Clears the variable argument list. This <b>MUST</b> be run after every [[va_start]].
  
 
==Example==
 
==Example==

Revision as of 07:43, 23 May 2014

Syntax

Syntax: va_end

  • None

Use

Clears the variable argument list. This MUST be run after every va_start.

Example


100:     va_start
         arg_pushl 00000001 //This will set R1 to 1 when passed the the variable argument function
         arg_pushl 00000002 //This will set R2 to 2 when passed the the variable argument function
         arg_pushl 00000003 //This will set R3 to 3 when passed the the variable argument function
         va_call 110
         va_end 
         ret 
110:     window_msg 'Register R1 = <r1>. Register R2 = <r2>. Register R3 = <r3>.'
         winend
         ret 

Also see

va_call, va_start, arg_pushl, ret