由于g:remoteFunction已被弃用,我应该使用什么代替?并请举例说明。
在c中是否有办法将字符串转换为命令?例如:
void x(string n){
//do something
}
void y(int n){
//do something
}
void z(int n){
//do something
}
stringForConvert="z(10);y(2);x(\"Its cool\");";
mysteryCommand(stringForConvert);
Run Code Online (Sandbox Code Playgroud)
请注意,我没有奢侈的写入另一个文件并进行编译.