[Package Index | Mudlib Index | Effect Index]

File /secure/simul_efun/get_function_pointer.c

Contains the get_function_pointer() sfun.

Method index

Public Functions

These are functions that everyone can access.

get_function_pointer
function get_function_pointer(string lpc)

Create a function pointer from a string representation of a function pointer.

Parameters:
lpc - A string representation of a function_pointer, e.g. "(: tell_room( environment( this_player() ), \"Something goes \" + $1 ) :)"

Returns:
The corresponding function pointer or, if the string didn't start and end with (: :), the function pointer (: efun::tell_object :) (occasionally useful for debugging)