update cfunction.hpp from avbot

update cfunction.hpp from avbot