Commit 612ca71d authored by Christian Hergert's avatar Christian Hergert

function: tweak signatures a bit

Until we get the proper param stuff done.
parent 42d9fde3
......@@ -1089,6 +1089,7 @@ girst_parser_object_get_signature (GirstParserObject *self)
if (!GIRST_IS_FUNCTION (self) &&
!GIRST_IS_CALLBACK (self) &&
!GIRST_IS_CONSTRUCTOR (self) &&
!GIRST_IS_VIRTUAL_METHOD (self) &&
!GIRST_IS_METHOD (self))
return NULL;
......@@ -1108,7 +1109,7 @@ girst_parser_object_get_signature (GirstParserObject *self)
g_string_append (str, "void");
}
g_string_append_c (str, '\n');
g_string_append_c (str, ' ');
/* Now the function name (or callback/vtable definition) */
......@@ -1126,6 +1127,12 @@ girst_parser_object_get_signature (GirstParserObject *self)
{
const gchar *c_identifier = girst_function_get_c_identifier (GIRST_FUNCTION (self));
g_string_append_printf (str, "%s ", c_identifier);
}
else if (GIRST_IS_CONSTRUCTOR (self))
{
const gchar *c_identifier = girst_constructor_get_c_identifier (GIRST_CONSTRUCTOR (self));
g_string_append_printf (str, "%s ", c_identifier);
}
else if (GIRST_IS_METHOD (self))
......
......@@ -9,7 +9,9 @@
.. code-block:: c
{{function.get_signature()}}
{{function.get_signature()}}
..
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment