ExecuteFunc and sequential operation

jwallstone

New Member
Reaction score
33
Does ExecuteFunc still guarantee sequential operation? I would like to call it from a loop (a group enumeration actually), and have some globals that I would like to set to pass as arguments to the function each time it's called. Can I be sure that the global will have the correct value for each execution of the code?

Example:
JASS:
function func1 takes nothing returns nothing
set udg_int = 1
call ExecuteFunc("func2")
set udg_int = 2
call ExecuteFunc("func2")
endfunction

function func2 takes nothing returns nothing
call BJDebugMsg(I2S(udg_int))
endfunction


Will this always display "1" then "2"?

EDIT: No waits are involved. Obviously, I tested it for this simple case, but I'm wondering if it always holds true, or if doing this repeatedly in a long loop or with more complicated code in between that would require more execution time would prevent this from working?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top