One more question:
When doing the following:
Pike_sp++; object_index_no_free2(Pike_sp-1, portal, 0, MK_STRING_SVALUE("_total"));
What am I supposed to do to cleanup after using the returned svalue?
Pike_sp--; or pop_stack();
?
And, on a related note, what if I do:
Pike_sp++; object_index_no_free2(Pike_sp-1, portal, 0, MK_STRING_SVALUE("_total")); ... some processing ... object_set_index2(portal,0, MK_STRING_SVALUE("_total"), Pike_sp-1);
What do I need at this point, Pike_sp-- or pop_stack() ?
In the above examples the values of _total could have been arrays or ints or strings; I presume the answers are the same regardless of the datatype.