| 34 | class t_function : public t_doc { |
| 35 | public: |
| 36 | t_function(t_type* returntype, std::string name, t_struct* arglist, bool oneway = false) |
| 37 | : returntype_(returntype), |
| 38 | name_(name), |
| 39 | arglist_(arglist), |
| 40 | xceptions_(new t_struct(nullptr)), |
| 41 | own_xceptions_(true), |
| 42 | oneway_(oneway) { |
| 43 | xceptions_->set_method_xcepts(true); |
| 44 | if (oneway_ && (!returntype_->is_void())) { |
| 45 | pwarning(1, "Oneway methods should return void.\n"); |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | t_function(t_type* returntype, |
| 50 | std::string name, |
nothing calls this directly
no test coverage detected