diff options
author | Philip Chimento <philip.chimento@gmail.com> | 2020-05-05 22:30:12 -0700 |
---|---|---|
committer | Philip Chimento <philip.chimento@gmail.com> | 2021-01-30 13:56:30 -0800 |
commit | e15f239b9ff528bb473b83a7e57313236d4a76b7 (patch) | |
tree | fac70849e1413eb48fe23c2f4fa4be943e1ff3de /util | |
parent | bfea3ebd317c30d3f3ef31be937cbd417723bb1a (diff) | |
download | gjs-e15f239b9ff528bb473b83a7e57313236d4a76b7.tar.gz |
cairo: Remove JSClass macros from Cairo context
Remove the usage of the GJS_DEFINE_PRIV_FROM_JS and GJS_DEFINE_PROTO
families of macros from the Cairo context wrapper type. Use CWrapper
instead, for more type safety and less boilerplate.
Also requires adding a debug topic for Cairo.
Diffstat (limited to 'util')
-rw-r--r-- | util/log.cpp | 3 | ||||
-rw-r--r-- | util/log.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/util/log.cpp b/util/log.cpp index 9ecb866d..728d4c50 100644 --- a/util/log.cpp +++ b/util/log.cpp @@ -166,6 +166,9 @@ _Pragma("GCC diagnostic pop") case GJS_DEBUG_NATIVE: prefix = "JS NATIVE"; break; + case GJS_DEBUG_CAIRO: + prefix = "JS CAIRO"; + break; case GJS_DEBUG_KEEP_ALIVE: prefix = "JS KP ALV"; break; @@ -18,6 +18,7 @@ typedef enum { GJS_DEBUG_CONTEXT, GJS_DEBUG_IMPORTER, GJS_DEBUG_NATIVE, + GJS_DEBUG_CAIRO, GJS_DEBUG_KEEP_ALIVE, GJS_DEBUG_GREPO, GJS_DEBUG_GNAMESPACE, |