Fix class name string
This commit is contained in:
parent
572d89b067
commit
a05692ebb2
|
@ -643,7 +643,7 @@ public: \
|
||||||
|
|
||||||
#define IMPLEMENT_ES5_CLASS(CLASS) \
|
#define IMPLEMENT_ES5_CLASS(CLASS) \
|
||||||
Napi::FunctionReference CLASS::_ctorEs5; \
|
Napi::FunctionReference CLASS::_ctorEs5; \
|
||||||
const char *CLASS::_nameEs5 = "CLASS##__TIMESTAMP__"; \
|
const char *CLASS::_nameEs5 = #CLASS; \
|
||||||
void CLASS::_finalizeEs5(napi_env e, void *dest, void* hint) { \
|
void CLASS::_finalizeEs5(napi_env e, void *dest, void* hint) { \
|
||||||
CLASS *instance = reinterpret_cast<CLASS*>(dest); \
|
CLASS *instance = reinterpret_cast<CLASS*>(dest); \
|
||||||
delete instance; \
|
delete instance; \
|
||||||
|
|
Loading…
Reference in New Issue