Pair (C++) with V8 -
How do I wrap the C ++ code in V8, try to understand. It is clear how to do it, when you create smth like 'hello world':
stable handle & lt; Value & gt; Hello (CantAntues & Eggs) {Handskoscope Scope; Return zone Close (String :: New ("Hello_World")); }
I want to wrap the next function:
void foo () {pair; Lt; String, int & gt; F ("size", 30); Pair & lt; String, int & gt; S ("number", 12); Cout & lt; & Lt; "First" & lt; & Lt; F.first & lt; & Lt; "," & Lt; & Lt; F.second & lt; & Lt; Endl; Cout & lt; & Lt; "Second" & lt; & Lt; S.first & lt; & Lt; "," & Lt; & Lt; S.second & lt; & Lt; Endl; }
But the problem is this: I do not have any idea how to do this.
Comments
Post a Comment