ldmud/mudlib/deprecated/map_mapping.c
Alexander Motzkau 6d5702f019 Added a few sefun implementations of LDMud 3.2 efuns
Simul-efun implementations of deprecated efuns from the
mud Seifenblase by Myonara@UNItopia and Gnomi@UNItopia.
2025-03-21 21:30:30 +01:00

15 lines
406 B
C

/* This sefun is to provide a replacement for the efun map_mapping().
* Feel free to add it to your mudlibs, if you have much code relying on that.
*/
#if ! __EFUN_DEFINED__(map_mapping)
mapping map_mapping(mapping m, string|closure|mapping f, varargs mixed* args)
{
if (efun::extern_call())
efun::set_this_object(efun::previous_object());
return map_indices(m, f, args...);
}
#endif