Browse Source

[cpp] Explicitly set the fake-void-return flag when creating closures. Closes https://github.com/HaxeFoundation/hxcpp/issues/354.

Hugh 9 years ago
parent
commit
41890159da
1 changed files with 1 additions and 0 deletions
  1. 1 0
      gencpp.ml

+ 1 - 0
gencpp.ml

@@ -1574,6 +1574,7 @@ let gen_expression_tree ctx retval expression_tree set_var tail_code =
 
 
       let pop_real_this_ptr = clear_real_this_ptr ctx true in
+      ctx.ctx_real_void <- false;
 
       writer#begin_block;
       if (ctx.ctx_debug_level>0) then begin