The SystemC LRM v 1666-2023 defines a global function sc_object * sc_core::get_current_sc_object();
Later on in the spec, it erroneously calls this function a "member function".
Ignoring this specification error, there doesn't seem to be an implementation of either a member function or a global function get_current_sc_object() in this library.