保誠-保戶業務員媒合平台
HelenHuang
2022-06-09 9bdb95c9e34cef640534e5e5a1e2225a80442000
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// These macros weren't added until v8 version 4.4
#ifndef V8_MAJOR_VERSION
    #if NODE_MODULE_VERSION <= 11
        #define V8_MAJOR_VERSION 3
        #define V8_MINOR_VERSION 14
    #elif V8_MAJOR_VERSION <= 14
        #define V8_MAJOR_VERSION 3
        #define V8_MINOR_VERSION 28
    #else
        #error v8 version macros missing
    #endif
#endif
 
#define V8_AT_LEAST(major, minor) (V8_MAJOR_VERSION > major || (V8_MAJOR_VERSION == major && V8_MINOR_VERSION >= minor))