pub fn set_runtime_error(msg: impl Into<String>)
Set the last runtime error message
Note: This clears any cached CString to prevent stale pointer access.