Exemplo n.º 1
0
 static function makeStack($s)
 {
     $a = $GLOBALS[$s];
     $m = new _hx_array(array());
     $_g1 = 0;
     $_g = $a->length - ($s == "%s" ? 2 : 0);
     while ($_g1 < $_g) {
         $i = $_g1++;
         $d = _hx_explode("::", $a[$i]);
         $m->unshift(haxe_StackItem::Method($d[0], $d[1]));
         unset($i, $d);
     }
     return $m;
 }
Exemplo n.º 2
0
<?php

class haxe_StackItem extends Enum
{
    public static $CFunction;
    public static function FilePos($s, $file, $line)
    {
        return new haxe_StackItem("FilePos", 2, array($s, $file, $line));
    }
    public static function LocalFunction($v = null)
    {
        return new haxe_StackItem("LocalFunction", 4, array($v));
    }
    public static function Method($classname, $method)
    {
        return new haxe_StackItem("Method", 3, array($classname, $method));
    }
    public static function Module($m)
    {
        return new haxe_StackItem("Module", 1, array($m));
    }
    public static $__constructors = array(0 => 'CFunction', 2 => 'FilePos', 4 => 'LocalFunction', 3 => 'Method', 1 => 'Module');
}
haxe_StackItem::$CFunction = new haxe_StackItem("CFunction", 0);