Hello,Is it possible to extract code of some function into string variable using CT reflextion?
For example:
int test(bool flag) { return flag ? 100 : getRandom(); }enum string code = GetFunctionCode!test; // "return flag ? 100 : getRandom();"
Hello,Is it possible to extract code of some function into string variable using CT reflextion?
For example:
int test(bool flag) { return flag ? 100 : getRandom(); }enum string code = GetFunctionCode!test; // "return flag ? 100 : getRandom();"