Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
0667f2ac
Unverified
Commit
0667f2ac
authored
Feb 21, 2018
by
Ignacio Etcheverry
Committed by
GitHub
Feb 21, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #16884 from paulloz/fix-csharp-signal-attribute-fix
[mono] fix signals parameter retrieval
parents
222516a8
7a723954
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
gd_mono_method.cpp
modules/mono/mono_gd/gd_mono_method.cpp
+7
-5
No files found.
modules/mono/mono_gd/gd_mono_method.cpp
View file @
0667f2ac
...
...
@@ -230,12 +230,14 @@ String GDMonoMethod::get_signature_desc(bool p_namespaces) const {
}
void
GDMonoMethod
::
get_parameter_names
(
Vector
<
StringName
>
&
names
)
const
{
const
char
*
_names
=
memnew_arr
(
char
,
params_count
);
mono_method_get_param_names
(
mono_method
,
&
_names
);
for
(
int
i
=
0
;
i
<
params_count
;
++
i
)
{
names
.
push_back
(
StringName
(
&
_names
[
i
]));
if
(
params_count
>
0
)
{
const
char
**
_names
=
memnew_arr
(
const
char
*
,
params_count
);
mono_method_get_param_names
(
mono_method
,
_names
);
for
(
int
i
=
0
;
i
<
params_count
;
++
i
)
{
names
.
push_back
(
StringName
(
_names
[
i
]));
}
memdelete_arr
(
_names
);
}
memdelete_arr
(
_names
);
}
void
GDMonoMethod
::
get_parameter_types
(
Vector
<
ManagedType
>
&
types
)
const
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment