#include "TinyJS.h" extern "C" { const char* eval(char* js_code) { CTinyJS *js = new CTinyJS(); const std::string json = js->evaluate(js_code); const char* cstr = json.c_str(); delete js; return cstr; } }