mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
*** empty log message ***
This commit is contained in:
parent
4436d34f73
commit
59537b18d2
@ -2152,10 +2152,12 @@ void InterfaceMakerPythonNative::write_function_instance(ostream &out, Interface
|
||||
string return_expr = remap->call_function(out, extra_indent_level, true, container, pexprs);
|
||||
if (return_expr.empty())
|
||||
{
|
||||
if (track_interpreter) {
|
||||
if (track_interpreter)
|
||||
{
|
||||
indent(out,extra_indent_level) << "in_interpreter = 1;\n";
|
||||
}
|
||||
if (!extra_cleanup.empty()) {
|
||||
if (!extra_cleanup.empty())
|
||||
{
|
||||
indent(out,extra_indent_level) << extra_cleanup << "\n";
|
||||
}
|
||||
do_assert_init(out, extra_indent_level,isconstructor);
|
||||
@ -2225,10 +2227,13 @@ void InterfaceMakerPythonNative::pack_return_value(ostream &out, int indent_leve
|
||||
indent(out, indent_level)
|
||||
<< "return PyLong_FromLongLong(" << return_expr << ");\n";
|
||||
|
||||
} else if(TypeManager::is_unsigned_integer(type)){
|
||||
indent(out, indent_level)
|
||||
<< "return PyLong_FromUnsignedLong(" << return_expr << ");\n";
|
||||
|
||||
}else if (TypeManager::is_integer(type)) {
|
||||
indent(out, indent_level)
|
||||
<< "return PyInt_FromLong(" << return_expr << ");\n";
|
||||
|
||||
} else if (TypeManager::is_float(type)) {
|
||||
indent(out, indent_level)
|
||||
<< "return PyFloat_FromDouble(" << return_expr << ");\n";
|
||||
|
Loading…
x
Reference in New Issue
Block a user