소스 검색

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

Nicolas Cannasse 13 년 전
부모
커밋
66c603eea4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;