api_generator: generate default static functions