Added a comment about V8_VERSION macro.
This commit is contained in:
parent
f68e47af3e
commit
cc16812c4f
1 changed files with 15 additions and 0 deletions
|
|
@ -3,6 +3,13 @@
|
||||||
*
|
*
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
// V8 Version Macro
|
||||||
|
// ----------------
|
||||||
|
// v8 does not (until now) provide a version macro - which is still discussed and may come soon.
|
||||||
|
// Until then, we set a default version which can be overridden via command line or via a define in
|
||||||
|
// the SWIG configuration.
|
||||||
|
// For example, `swig -javascript -v8 -DV8_VERSION=0x031110`
|
||||||
|
|
||||||
%define %swig_v8_define_version(version)
|
%define %swig_v8_define_version(version)
|
||||||
%insert("runtime") %{
|
%insert("runtime") %{
|
||||||
#ifndef SWIG_V8_VERSION
|
#ifndef SWIG_V8_VERSION
|
||||||
|
|
@ -18,12 +25,20 @@
|
||||||
%swig_v8_define_version(0x031110)
|
%swig_v8_define_version(0x031110)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
// Node support
|
||||||
|
// ------------
|
||||||
|
|
||||||
#ifdef BUILDING_NODE_EXTENSION
|
#ifdef BUILDING_NODE_EXTENSION
|
||||||
%insert("runtime") %{
|
%insert("runtime") %{
|
||||||
#include <node.h>
|
#include <node.h>
|
||||||
%}
|
%}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
// V8 runtime
|
||||||
|
// ----------
|
||||||
|
|
||||||
%insert(runtime) %{
|
%insert(runtime) %{
|
||||||
#include <v8.h>
|
#include <v8.h>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue