Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HOW TO reference a function name with variables?
#2
I suggest to not use multiple functions with variable names. Use single function with parameters.

But if really need:
Macro Macro2742
Code:
Copy      Help
;/exe
#exe addfunction "f_0"
#exe addfunction "f_1"
#exe addfunction "f_2"

int i
for i 0 3
#opt nowarnings 1
,call F"f_{i}"
,;;or, if need multiple threads:
,;mac F"f_{i}"
#opt nowarnings 0
Function f_0
Code:
Copy      Help
out 0
Function f_1
Code:
Copy      Help
out 1
Function f_2
Code:
Copy      Help
out 2


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)