You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#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;
|
|
}
|
|
}
|