I want to write a function and be able to call it during execution (say during a while(1) loop). Is this possible without having to parse an input string to extract the function and parameters I need or is that the only way?
Thanks!.
Printable View
I want to write a function and be able to call it during execution (say during a while(1) loop). Is this possible without having to parse an input string to extract the function and parameters I need or is that the only way?
Thanks!.
No, C does not have it's own built-in 'eval' function, where you can type in arbitrary bits of code which is then compiled and run.
I suppose you could integrate this into your program, if you want some scripting ability.
Lua: about