mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-29 06:12:18 -06:00
bazaar: PyConsoleCtrl: history functionality, BoostPyTest: Value exposure as int, first try, starting upp module
git-svn-id: svn://ultimatepp.org/upp/trunk@3339 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
f74addaae5
commit
d4d3d7f8ad
16 changed files with 321 additions and 109 deletions
13
bazaar/BoostPyTest/UppString.cpp
Normal file
13
bazaar/BoostPyTest/UppString.cpp
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#include "UppString.h"
|
||||
|
||||
String Stringhello() { return String( "my new custom string" ); }
|
||||
std::size_t Stringsize(const String& s) { return s.GetLength(); }
|
||||
|
||||
void export_UppString()
|
||||
{
|
||||
to_python_converter<String, String_to_python_str>();
|
||||
String_from_python_str();
|
||||
def("hello", Stringhello);
|
||||
def("size", Stringsize);
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue