On Thu, Apr 4, 2013 at 9:35 PM, Mike Moening <[email protected]> wrote:
> I embed V8 in my application(s).
> No shell or chromium etc..
> V8 is a static library linked into my applications.
>
See also, in v8.h:
/**
* Sets V8 flags from a string.
*/
static void SetFlagsFromString(const char* str, int length);
/**
* Sets V8 flags from the command line.
*/
static void SetFlagsFromCommandLine(int* argc,
char** argv,
bool remove_flags);
So you could do:
char const * args = "--allow-natives-**syntax"*;*
v8::SetFlagsFromString(args, (int)strlen(args));
(Can't imagine why that function takes a _signed_ number type, though.)
--
----- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
--
--
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
---
You received this message because you are subscribed to the Google Groups
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.