pike.git
/
src
/
builtin.cmod
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/builtin.cmod:3654:
/*! @decl function(mixed_void) _get_setter(object o, string s) *! *! Get a setter for the variable named @[s] in object @[o]. *! *! @seealso *! @[object_variablep()] */ PIKEFUN function(mixed:void) _get_setter(object o, string s) { struct program *p;
+
struct inherit *inh;
int f; if (!(p = o->prog)) { Pike_error("Indexing a destructed object.\n"); }
-
+
inh = p->inherits + Pike_sp[-args].subtype;
+
p = inh->prog;
f = find_shared_string_identifier(s, p); if ((f >= 0) && IDENTIFIER_IS_VARIABLE(ID_FROM_INT(p, f)->identifier_flags)) {
-
+
f += inh->identifier_level;
push_function(get_setter(o, f), f_Setter_cq__backtick_28_29_fun_num); } else { push_undefined(); } stack_pop_n_elems_keep_top(args); } /*! @endclass */