Added acGetNumber / acSetNumber to allow storing a value in the S+ process.
The only real purpose for this is to pass data between Lua states. There are two Lua states which S+ uses, state 1 is always run unless state 1 is currently executing a script, then state 2 is used.
However, state 1 and state 2 are completely separate from and unaware of each other. So if you need to send a signal from state 2 to state 1, you can use acGetNumber / acSetNumber to pass a message. This is only used in a very rare scenario, but is there if it's useful. |