| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Reviewer: Renato Araújo <renato.filho@openbossa.org>
|
|
|
|
|
| |
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
|
| |
|
|
|
|
|
| |
Reviewer: Renato Araújo <renato.filho@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Hugo Parente Lima <hugo.pl@gmail.com>
|
|
|
|
|
| |
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
|
|
|
|
|
| |
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Renato Araújo <renato.filho@openbossa.org>
|
| |
|
|
|
|
|
| |
Reviewer: Hugo Lima <hugo.lima@openbossa.org>
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The %# group of type system variables are meant to be replaced by
C++ arguments and %PYARG_# by Python arguments. For some reason %0
is replaced by the Python return variable and %PYARG_0 is considered
invalid by the replacement system. Now %PYARG_0 is replaced by
the Python return variable and %0 by the C++ version.
The %CONVERTTOCPP type system variable was added.
Fixed ShibokenGenerator::injectedCodeHasReturnValueAttribution to
consider a return value attribution when the user does "%PYARG_0 = ..."
instead of "%0 = ...".
The changes were documented and all the test bindings inject codes
were updated to use the modified variables properly.
Reviewed by Hugo Lima <hugo.lima@openbossa.org>
|
|
|
|
| |
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
ShibokenGenerator, it returns true if a code injection
on a virtual method override (a "native" inject-code) does
a call to the Python override.
Added the %PYTHON_METHOD_OVERRIDE type system variable,
it is replaced by the name of the pointer to a Python
method that represents an override to a C++ virtual method.
A code injection in the "native/end" position for a method
modification is now put before the dereferencing of the
variables used in the Python call (the method object and
the Python argument tuple).
If a call to the Python override method is detected on
code injections of the "native" class from method
modifications, the generator doesn't write the same
call again.
All documentation was updated with the changes.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
"native" code injections to get the Python tuple of objects converted
from C++ arguments received from a virtual method call. The tuple is
the one to be passed to a Python override of the wrapped C++ virtual
method.
Other type system variables were improved to have a smarter replacement
depending if they are part of a code injection of the "native" or "target"
classes.
* %PYARG_#
In the context of a native code injection it represents one item in the
Python argument tuple, acquired with PyTuple_GET_ITEM. If the binding
developer attributes some value to the variable the code snippet writer
tries to be smart and sets the tuple item with PyTuple_SET_ITEM.
See the updated documentation for more details.
* %CPPSELF
Replaced by "this" in native code injections.
The documentation was updated with the new information.
|
|
|
|
|
|
| |
C++ arguments conversion to a Python argument tuple. The documentation
was updated with this information. The virtual method writer was also
fixed to not convert removed arguments.
|
|
|
|
|
|
|
|
|
| |
AbstractMetaArgument indicating the last C++ argument available
(i.e. converted from Python arguments to C++) to be used in the
type system variable replacement. If a variable in the user's
custom code is not ready, it is replaced by the argument default
value.
Also updated the documentation.
|
|
|
|
|
|
|
|
| |
for the argument indicated by the numeric index '#'; wrong indexes will
issue a generator warning.
The documentation was updated as well.
Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
|
|
|
|
|
|
| |
to handle correctly removed arguments and also consider variable
values with default values.
The documentation was updated with the new information.
|
|
|
|
|
|
|
|
|
| |
by the proper Python type object depending on the context: method
or class modification. Also added an AbstractMetaClass argument
to ShibokenGenerator::writeCodeSnips to pass the needed context
information.
Reviewd by Luciano Wolf <luciano.wolf@openbossa.org>
|
|
|
|
| |
Reviewed by Hugo Lima <hugo.lima@openbossa.org>
|
|
|
|
| |
how to call the wrapped C++ method/function
|
|
|
|
|
|
| |
and uses the type system's code-injection tag
Reviewed by Lauro Neto <lauro.neto@openbossa.org>
|
|
|
|
| |
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
|
| |
|
| |
|
|
|