소스 검색

Quote source file names

Hugh Sanderson 15 년 전
부모
커밋
9d13009a46
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      gencpp.ml

+ 1 - 1
gencpp.ml

@@ -1223,7 +1223,7 @@ and gen_expression ctx retval expression =
 				let want_value = (return_from_block && !remaining = 1) in
 				find_local_return_blocks_ctx ctx want_value expression;
 				let line = Lexer.find_line_index ctx.ctx_common.lines expression.epos in
-				output_i ("HX_SOURCE_POS(\"" ^ expression.epos.pfile ^ "\","
+				output_i ("HX_SOURCE_POS(\"" ^ (Ast.s_escape expression.epos.pfile) ^ "\","
 					^ (string_of_int line) ^ ")\n" );
 				output_i "";
 				ctx.ctx_return_from_internal_node <- return_from_internal_node;