Browse Source

[cs] Add -net-lib support for Compiler.add_native_lib

Cauê Waneck 11 years ago
parent
commit
bd955eef11
1 changed files with 9 additions and 0 deletions
  1. 9 0
      interp.ml

+ 9 - 0
interp.ml

@@ -2505,6 +2505,15 @@ let macro_lib =
 				(match com.platform with
 				| Flash -> Genswf.add_swf_lib com file false
 				| Java -> Genjava.add_java_lib com file false
+				| Cs ->
+					let file, is_std = match ExtString.String.nsplit file "@" with
+						| [file] ->
+							file,false
+						| [file;"std"] ->
+							file,true
+						| _ -> raise Exit
+					in
+					Gencs.add_net_lib com file is_std
 				| _ -> failwith "Unsupported platform");
 				VNull
 			| _ ->