MCPcopy Create free account
hub / github.com/KaiserGranatapfel/GameCubeRecompiled / execute_string

Method execute_string

gcrecomp-lua/src/engine.rs:33–40  ·  view source on GitHub ↗
(&self, code: &str)

Source from the content-addressed store, hash-verified

31 }
32
33 pub fn execute_string(&self, code: &str) -> anyhow::Result<()> {
34 self.lua
35 .load(code)
36 .exec()
37 .into_anyhow()
38 .context("Failed to execute Lua string")?;
39 Ok(())
40 }
41
42 pub fn set_package_path(&self, path: &str) -> anyhow::Result<()> {
43 let package: mlua::Table = self.lua.globals().get("package").into_anyhow()?;

Callers

nothing calls this directly

Calls 2

into_anyhowMethod · 0.80
loadMethod · 0.80

Tested by

no test coverage detected