MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / eval_safe

Function eval_safe

Source/Utils/dukglue/public_util.h:269–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267
268template <typename RetT>
269duk_ret_t eval_safe(duk_context* ctx, void* udata)
270{
271 SafeEvalData<RetT>* data = (SafeEvalData<RetT>*) udata;
272
273 duk_eval_string(ctx, data->str);
274 dukglue_read(ctx, -1, data->out);
275 return 1;
276}
277
278}
279}

Callers

nothing calls this directly

Calls 1

dukglue_readFunction · 0.85

Tested by

no test coverage detected