3 ms·
Is there some documentation on how to run code from a string in C. I guess I can setup a getter for a buffer and then call fxParseScript? Is that all?
by megous 9y ago
Is there some documentation on how to run code from a string in C. I guess I can setup a getter for a buffer and then call fxParseScript? Is that all?
- megous 9y agoAh, I found some nice example in fx_agent_start_aux() function. :)
- phoddie 9y agoFWIW - we usually don't parse scripts on the MCU because that takes time and memory. Instead, we compile on the development machine using xsc and link using xsl. This leaves more memory free for scripts to use for data, and allows scripts to start running almost instantly.
- megous 9y agoI understand, though I meant to use xs engine separately on bigger platforms, where this is not an issue.