mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-31 06:12:22 -06:00
bazaar: BoostPyTest: Value export for the common types, including String and ValueArray
git-svn-id: svn://ultimatepp.org/upp/trunk@3340 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
d4d3d7f8ad
commit
bbc2ef5b80
12 changed files with 153 additions and 13 deletions
|
|
@ -47,6 +47,9 @@ BoostPyTest::BoostPyTest()
|
|||
scope(upp_module).attr("slpy") = ptr(&slpy);
|
||||
scope(upp_module).attr("sl") = ptr(&sl);
|
||||
|
||||
vc.SetData(123);
|
||||
scope(upp_module).attr("vc") = ptr(&vc);
|
||||
|
||||
//the additional import is needless
|
||||
String sc =
|
||||
"p = hello.World()\n"
|
||||
|
|
@ -65,6 +68,9 @@ BoostPyTest::BoostPyTest()
|
|||
"print upp.sl.get()\n"
|
||||
"upp.sl.set(75)\n"
|
||||
|
||||
"upp.vc.set(range(10))\n"
|
||||
"upp.vc.get()\n"
|
||||
|
||||
;
|
||||
con.cmd.SetData(sc);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue