Add void and generic function snippet