Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
AutoCXPusher Struct Reference

List of all members.

Public Member Functions

 AutoCXPusher (JSContext *cx)
 ~AutoCXPusher ()

Detailed Description

Definition at line 212 of file nsJSNPRuntime.cpp.

Constructor & Destructor Documentation

Definition at line 214 of file nsJSNPRuntime.cpp.

    // Precondition explaining why we don't need to worry about errors
    // in OnWrapperCreated.
    NS_PRECONDITION(sWrapperCount > 0,
                    "must have live wrappers when using AutoCXPusher");

    // Call OnWrapperCreated and OnWrapperDestroyed to ensure that the
    // last OnWrapperDestroyed doesn't happen while we're on the stack
    // and null out sContextStack.


Here is the call graph for this function:

Definition at line 229 of file nsJSNPRuntime.cpp.

    JSContext *cx = nsnull;

    JSContext *currentCx = nsnull;

    if (!currentCx) {
      // No JS is running, tell the context we're done executing
      // script.

      nsIScriptContext *scx = GetScriptContextFromJSContext(cx);

      if (scx) {


Here is the call graph for this function:

The documentation for this struct was generated from the following file: