Ignore:
Timestamp:
Feb 1, 2011, 2:41:37 PM (9 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Added V8 test
  • command line test and usage display
File:
1 edited

Legend:

Unmodified
Added
Removed
  • gaycko/trunk/src/js/glue.cpp

    r4725 r4727  
     1#include <string.h>
    12#include <v8.h>
    23#include "js/glue.h"
     
    45using namespace v8;
    56
    6 int testV8(void) {
     7char* testV8(void) {
    78        // Create a stack-allocated handle scope.
    89        HandleScope handle_scope;
     
    2930        // Convert the result to an ASCII string and print it.
    3031        String::AsciiValue ascii(result);
    31         printf("'%s'\n", *ascii);
    32         return 0;
    33 
     32        return strdup(*ascii);
    3433}
    3534
Note: See TracChangeset for help on using the changeset viewer.