Browse Source

bugfix : run macro filters before saving state (prevent losing metadata set by macros in on_generate)

Nicolas Cannasse 13 years ago
parent
commit
66c603eea4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main.ml

+ 1 - 1
main.ml

@@ -1043,9 +1043,9 @@ try
 		] in
 		List.iter (Codegen.post_process filters) com.types;
 		Codegen.post_process_end();
+		List.iter (fun f -> f()) (List.rev com.filters);
 		List.iter (Codegen.save_class_state tctx) com.types;
 		if Common.defined ctx.com "dce" && not !interp then Dce.run tctx main;
-		List.iter (fun f -> f()) (List.rev com.filters);
 		let type_filters = [
 			Codegen.check_private_path;
 			Codegen.remove_generic_base;