api_generator: c++: create api init function