浏览代码

[cpp] Fix hasMarkFunc condition

Hugh Sanderson 8 年之前
父节点
当前提交
f0f350ed9b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/generators/gencpp.ml

+ 1 - 1
src/generators/gencpp.ml

@@ -6078,7 +6078,7 @@ let generate_class_files baseCtx super_deps constructor_deps class_def inScripta
       "0 /* sMemberFields */";
    in
 
-   let hasMarkFunc = (not nativeGen) && not (List.exists is_data_member implemented_fields) in
+   let hasMarkFunc = (not nativeGen) && (List.exists is_data_member implemented_fields) in
 
    if (hasMarkFunc) then begin
       (* Mark static variables as used *)