mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 06:05:58 -06:00
18 lines
419 B
C++
18 lines
419 B
C++
#include "UppValue.h"
|
|
|
|
Value Valuehelloval() { return 2244; }
|
|
int Valuedoubleit(const Value& v) { return int(v) * 2; }
|
|
|
|
void export_UppValue()
|
|
{
|
|
to_python_converter<Value, Value_to_python>();
|
|
Value_from_python();
|
|
def("helloval", Valuehelloval);
|
|
def("doubleit", Valuedoubleit);
|
|
}
|
|
|
|
void export_UppValueArray()
|
|
{
|
|
to_python_converter<ValueArray, ValueArray_to_python>();
|
|
ValueArray_from_python();
|
|
}
|