Browse Source

[cpp] Fix hasMarkFunc condition

Hugh Sanderson 8 years ago
parent
commit
f0f350ed9b
1 changed files with 1 additions and 1 deletions
  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 */";
       "0 /* sMemberFields */";
    in
    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
    if (hasMarkFunc) then begin
       (* Mark static variables as used *)
       (* Mark static variables as used *)