]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - API/JSContextRefPrivate.h
JavaScriptCore-903.5.tar.gz
[apple/javascriptcore.git] / API / JSContextRefPrivate.h
index ff014ec64eca5d9e46b6a439bbe3157a6c956810..4f77aeadadde4a7e75a72a95a8f8124a95e5459d 100644 (file)
@@ -46,6 +46,15 @@ extern "C" {
 */
 JS_EXPORT JSGlobalContextRef JSContextGetGlobalContext(JSContextRef ctx);
 
+    
+/*!
+@function
+@abstract Gets a Backtrace for the existing context
+@param ctx The JSContext whose backtrace you want to get
+@result A string containing the backtrace
+*/
+JS_EXPORT JSStringRef JSContextCreateBacktrace(JSContextRef ctx, unsigned maxStackSize) AVAILABLE_IN_WEBKIT_VERSION_4_0;
+    
 #ifdef __cplusplus
 }
 #endif