Add function pointer to function environment