The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 895 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 895 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Passing array to macros
#1
I need to pass array into a function but with another thread. how to do it? way below doesn't work

Macro mac_t1
Code:
Copy      Help
int x(5)
ARRAY(int) y
y.create(2)
y[1]=6

mac "mac_t2" "" x y

Function mac_t2
Code:
Copy      Help
/
function x ARRAY(int)&y
out x
out y[1]
wait 10


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)