Kaynağa Gözat

[display] define macro platform name when adapting defines

Avoids some weird dead block highlighting.
Simon Krajewski 6 yıl önce
ebeveyn
işleme
bd87d4447d
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1 0
      src/context/common.ml

+ 1 - 0
src/context/common.ml

@@ -859,6 +859,7 @@ let adapt_defines_to_macro_context defines =
 	let to_remove = to_remove @ List.map (fun (_,d) -> "flash" ^ d) flash_versions in
 	values := PMap.foldi (fun k v acc -> if List.mem k to_remove then acc else PMap.add k v acc) !values PMap.empty;
 	values := PMap.add "macro" "1" !values;
+	values := PMap.add (platform_name !Globals.macro_platform) "1" !values;
 	{values = !values; defines_signature = None }
 
 let is_legacy_completion com = match com.json_out with