MCPcopy Create free account
hub / github.com/aiscriptdev/aiscript / define_native_function

Method define_native_function

aiscript-vm/src/vm/state.rs:1256–1259  ·  view source on GitHub ↗
(&mut self, name: &'static str, function: NativeFn<'gc>)

Source from the content-addressed store, hash-verified

1254 }
1255
1256 pub(crate) fn define_native_function(&mut self, name: &'static str, function: NativeFn<'gc>) {
1257 let s = self.intern_static(name);
1258 self.globals.insert(s, Value::NativeFunction(function));
1259 }
1260
1261 fn bind_method(
1262 &mut self,

Callers 2

define_builtin_functionsFunction · 0.80

Calls 1

intern_staticMethod · 0.45

Tested by

no test coverage detected