瀏覽代碼

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

Hugh 9 年之前
父節點
當前提交
41890159da
共有 1 個文件被更改,包括 1 次插入0 次删除
  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