2
0
Эх сурвалжийг харах

[eval] remove more hlmacro leftovers

Rudy Ges 1 жил өмнө
parent
commit
76b36356b2

+ 0 - 9
src/generators/hlinterp.ml

@@ -113,7 +113,6 @@ type context = {
 	mutable fcall : vfunction -> value list -> value;
 	mutable code : code;
 	mutable on_error : value -> (fundecl * int ref) list -> unit;
-	mutable resolve_macro_api : string -> (value list -> value) option;
 	checked : bool;
 	cached_protos : (int, vproto * ttype array * (int * (value -> value)) list) Hashtbl.t;
 	cached_strings : (int, string) Hashtbl.t;
@@ -2094,10 +2093,6 @@ let load_native ctx lib name t =
 			| _ -> Globals.die "" __LOC__)
 		| _ ->
 			unresolved())
-	| "macro" ->
-		(match ctx.resolve_macro_api name with
-		| None -> unresolved()
-		| Some f -> f)
 	| _ ->
 		unresolved()
 	) in
@@ -2130,7 +2125,6 @@ let create checked =
 		checked = checked;
 		fcall = (fun _ _ -> Globals.die "" __LOC__);
 		on_error = (fun _ _ -> Globals.die "" __LOC__);
-		resolve_macro_api = (fun _ -> None);
 	} in
 	ctx.on_error <- (fun msg stack -> failwith (vstr ctx msg HDyn ^ "\n" ^ String.concat "\n" (List.map (stack_frame ctx) stack)));
 	ctx.fcall <- call_fun ctx;
@@ -2139,9 +2133,6 @@ let create checked =
 let set_error_handler ctx e =
 	ctx.on_error <- e
 
-let set_macro_api ctx f =
-	ctx.resolve_macro_api <- f
-
 let add_code ctx code =
 	(* expand global table *)
 	let globals = Array.map default code.globals in

+ 0 - 3
std/haxe/macro/Compiler.hx

@@ -29,9 +29,6 @@ import haxe.hxb.WriterConfig;
 /**
 	All these methods can be called for compiler configuration macros.
 **/
-#if hl
-@:hlNative("macro")
-#end
 class Compiler {
 	/**
 		A conditional compilation flag can be set on the command line using

+ 0 - 3
std/haxe/macro/MacroStringTools.hx

@@ -28,9 +28,6 @@ import haxe.macro.Expr;
 	This class provides some utility methods to work with strings in macro
 	context.
 **/
-#if hl
-@:hlNative("macro")
-#end
 class MacroStringTools {
 	#if macro
 	/**

+ 0 - 3
std/haxe/macro/TypeTools.hx

@@ -33,9 +33,6 @@ using Lambda;
 	best used through 'using haxe.macro.TypeTools' syntax and then provides
 	additional methods on haxe.macro.Type instances.
 **/
-#if hl
-@:hlNative("macro")
-#end
 class TypeTools {
 	static function nullable(complexType:ComplexType):ComplexType
 		return macro:Null<$complexType>;