JS_SaveFrameChain 编辑
Saves and restores frame chains.
Syntax
bool
JS_SaveFrameChain(JSContext *cx);
void
JS_RestoreFrameChain(JSContext *cx);
Name | Type | Description |
---|---|---|
cx |
| The context to query. |
Description
These two functions are used to set aside cx
's call stack while that stack is inactive. After a call to JS_SaveFrameChain
, it looks as if there is no code running on cx
. Before calling JS_RestoreFrameChain
, cx
's call stack must be balanced and all nested calls to JS_SaveFrameChain
must have had matching JS_RestoreFrameChain
calls.
JS_SaveFrameChain
deals with cx not having any code running on it.
See Also
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论