浏览代码

*** empty log message ***

Franco Ponticelli 16 年之前
父节点
当前提交
847e01c852
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      genphp.ml

+ 3 - 0
genphp.ml

@@ -638,6 +638,9 @@ and gen_call ctx e el =
 		spr ctx ")";
 	| TLocal "__php__", [{ eexpr = TConst (TString code) }] ->
 		spr ctx (s_escape_php_vars ctx code)
+	| TLocal "__instanceof__" ,  [e1;{ eexpr = TConst (TString t) }] ->
+		gen_value ctx e1;
+		print ctx " instanceof %s" (s_escape_php_vars ctx t);
 	| TLocal "__physeq__" ,  [e1;e2] ->
 		gen_value ctx e1;
 		spr ctx " === ";