~unity-team/v8-cpp/trunk

« back to all changes in this revision

Viewing changes to test/addon.cpp

  • Committer: Marcus Tomlinson
  • Date: 2015-06-10 06:20:49 UTC
  • Revision ID: marcus.tomlinson@canonical.com-20150610062049-7zzi09xfldhch0l5
Added FindNode.cmake

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
    Persistent<Function> cb_;
47
47
};
48
48
 
49
 
struct MyStruct
50
 
{
51
 
    bool bool_value;
52
 
    int int_value;
53
 
    std::string string_value = "hello";
54
 
 
55
 
    void output()
56
 
    {
57
 
        std::cout << string_value << std::endl;
58
 
        std::cout.flush();
59
 
    }
60
 
};
61
 
 
62
49
Handle<Object> new_MyObject(FunctionCallbackInfo<Value> const& args)
63
50
{
64
51
    MyObject* obj = nullptr;