Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishkin authored and alex-epifanoff committed Jun 13, 2018
1 parent 75e5072 commit 6214fd7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions res/generators/templates/api/cpp/montana_ruby_wrap.cpp
Expand Up @@ -73,6 +73,13 @@ static VALUE _api_generator_<%= $cur_module.name %>_<%= module_method.native_nam
end %>
{
rho::apiGenerator::CMethodResult oRes;
<% if module_method.access != ModuleMethod::ACCESS_STATIC %>
if(!pObj)
{
oRes.setArgError("Invalid object!");
return oRes.toRuby();
}
<% end %>
<% if module_method.result != nil
if module_method.result.sub_param && module_method.result.sub_param.name %>
oRes.setParamName( "<%= module_method.result.sub_param.name %>" );<%
Expand Down

0 comments on commit 6214fd7

Please sign in to comment.