MCPcopy Create free account
hub / github.com/crawl/crawl / execstring

Method execstring

crawl-ref/source/clua.cc:287–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285}
286
287int CLua::execstring(const char *s, const char *context, int nresults)
288{
289 int err = 0;
290 if ((err = loadstring(s, context)))
291 return err;
292
293 err = pcall(0, nresults);
294 set_error(err);
295 return err;
296}
297
298bool CLua::is_path_safe(string s, bool trusted)
299{

Callers 4

map_lua_markerMethod · 0.80
_restore_gameFunction · 0.80
_execute_embedded_luaFunction · 0.80
translateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected