mirror of
https://github.com/lovell/sharp.git
synced 2026-02-05 14:16:17 +01:00
Less C, more C++ e.g. namespace, enum class
Improve image reference handling
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include "utilities.h"
|
||||
|
||||
using namespace v8;
|
||||
using namespace sharp;
|
||||
|
||||
/*
|
||||
Get and set cache memory and item limits
|
||||
@@ -58,8 +59,8 @@ NAN_METHOD(concurrency) {
|
||||
NAN_METHOD(counters) {
|
||||
NanScope();
|
||||
Local<Object> counters = NanNew<Object>();
|
||||
counters->Set(NanNew<String>("queue"), NanNew<Number>(counter_queue));
|
||||
counters->Set(NanNew<String>("process"), NanNew<Number>(counter_process));
|
||||
counters->Set(NanNew<String>("queue"), NanNew<Number>(counterQueue));
|
||||
counters->Set(NanNew<String>("process"), NanNew<Number>(counterProcess));
|
||||
NanReturnValue(counters);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user