package haxe; import haxe.CallStack.StackItem; /** Do not use manually. **/ @:dox(hide) @:noCompletion class NativeStackTrace { @:ifFeature('haxe.NativeStackTrace.exceptionStack') static public inline function saveStack(exception:Any):Void { } static public function callStack():Array { return _callStack(); } //implemented in the compiler static function _callStack():Array { return null; } //implemented in the compiler static public function exceptionStack():Array { return null; } static public inline function toHaxe(stack:Array, skip:Int = 0):Array { return skip > 0 ? stack.slice(skip) : stack; } }