зеркало из https://github.com/mozilla/pjs.git
added a comment.
This commit is contained in:
Родитель
393312a517
Коммит
86d14fee9a
|
@ -74,6 +74,10 @@ namespace JavaScript {
|
||||||
|
|
||||||
#undef define_atomic_type
|
#undef define_atomic_type
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Traits for classes that need to have their destructor called
|
||||||
|
* when reclaimed by the garbage collector.
|
||||||
|
*/
|
||||||
template <class T> struct gc_traits_finalizable {
|
template <class T> struct gc_traits_finalizable {
|
||||||
static void finalizer(void* obj, void* client_data)
|
static void finalizer(void* obj, void* client_data)
|
||||||
{
|
{
|
||||||
|
|
|
@ -74,6 +74,10 @@ namespace JavaScript {
|
||||||
|
|
||||||
#undef define_atomic_type
|
#undef define_atomic_type
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Traits for classes that need to have their destructor called
|
||||||
|
* when reclaimed by the garbage collector.
|
||||||
|
*/
|
||||||
template <class T> struct gc_traits_finalizable {
|
template <class T> struct gc_traits_finalizable {
|
||||||
static void finalizer(void* obj, void* client_data)
|
static void finalizer(void* obj, void* client_data)
|
||||||
{
|
{
|
||||||
|
|
Загрузка…
Ссылка в новой задаче