Skip to content
Commit 639e145b authored by Giovanni Campagna's avatar Giovanni Campagna
Browse files

GjsContext: add the concept of "current context"

Just a static global variable holding the GjsContext. There should
be at most one context at any time, and this is enforced by
make_current() checking the current context.
For backward compatibility, any new GjsContext is immediately made current,
which means that code that uses multiple context without handling
the current one manually will assert now. You can still use multiple
contexts if you take care to clear the current one.

This will be used to avoid passing a JSContext where we can't easily.

https://bugzilla.gnome.org/show_bug.cgi?id=699817
parent ffb57101
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment