mirror of
https://github.com/JakeHillion/object-introspection.git
synced 2024-11-09 21:24:14 +00:00
OIP prints 'this'as an arg for methods
This commit is contained in:
parent
f28bdfca48
commit
aea1e12004
@ -232,6 +232,11 @@ void printFuncDesc(const std::shared_ptr<FuncDesc>& funcDesc) {
|
|||||||
printf("\"funcArgs\":[");
|
printf("\"funcArgs\":[");
|
||||||
|
|
||||||
bool isFirstItem = true;
|
bool isFirstItem = true;
|
||||||
|
if (funcDesc->isMethod) {
|
||||||
|
printFuncArg(funcDesc->getThis());
|
||||||
|
isFirstItem = false;
|
||||||
|
}
|
||||||
|
|
||||||
for (size_t i = 0; i < funcDesc->numArgs(); ++i) {
|
for (size_t i = 0; i < funcDesc->numArgs(); ++i) {
|
||||||
if (!isFirstItem) {
|
if (!isFirstItem) {
|
||||||
printf(",");
|
printf(",");
|
||||||
|
Loading…
Reference in New Issue
Block a user