pub fn set_scriptname(name: Option<String>)Expand description
!!! WARNING: RUST-ONLY HELPER !!! No C counterpart exists as a
standalone function.
C assigns the char *scriptname global (Src/utils.c:36) directly, e.g.
scriptname = ... in bin_dot. Rust needs a setter over the OnceLock< Mutex<Option<String>>> that holds it.
Setter for scriptname. Called from bin_dot / source
when entering a script.