Skip to content
Snippets Groups Projects
Commit 3ca5e350 authored by Per Hedbor's avatar Per Hedbor
Browse files

Added preliminary _encode_object support (no real support in the master yet, though)

Rev: lib/modules/Remote.pmod/context.pike:1.9
parent b28f19cb
No related branches found
No related tags found
No related merge requests found
...@@ -97,7 +97,7 @@ array encode(mixed val) ...@@ -97,7 +97,7 @@ array encode(mixed val)
{ {
if (intp(val) || floatp(val)) if (intp(val) || floatp(val))
return ({ CTX_OTHER, val }); return ({ CTX_OTHER, val });
if (objectp(val)) if (objectp(val) && !val->_encode_object)
return ({ CTX_OBJECT, id_for(val) }); return ({ CTX_OBJECT, id_for(val) });
if (functionp(val) || programp(val)) if (functionp(val) || programp(val))
return ({ CTX_FUNCTION, id_for(val) }); return ({ CTX_FUNCTION, id_for(val) });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment