Call a void function from a string / char

Posted By: 20BN

Call a void function from a string / char - 04/29/19 10:31

Hi, all.

How to call void function from a string / char?

ex:

void test1()
{
error("OK");
}


void main()
{
...
USE_input_HowToScriptting("test1") // call test1()
...

}

like "Dynamic script".
Posted By: Aku_Aku

Re: Call a void function from a string / char - 04/29/19 10:43

What do you want to achieve?

Per tangentem, your code in this format is ugly and unreadable.
Posted By: Superku

Re: Call a void function from a string / char - 04/29/19 11:51

Check out http://www.conitec.net/beta/engine_getscript.htm
Posted By: 20BN

Re: Call a void function from a string / char - 04/30/19 09:58

@Superku

Thanks!
© 2020 lite-C Forums