docs: Output correct signature for class method first parameter
authorAndy Williams <andy@andywilliams.me>
Wed, 20 Dec 2017 15:00:18 +0000 (15:00 +0000)
committerWonki Kim <wonki_.kim@samsung.com>
Wed, 10 Jan 2018 11:08:13 +0000 (20:08 +0900)
src/scripts/elua/apps/gendoc.lua

index 51febf6..842df51 100644 (file)
@@ -41,7 +41,9 @@ local gen_func_csig = function(f, ftype)
     local rtype = f:return_type_get(ftype)
 
     local fparam = "Eo *obj"
-    if f:is_const() or f:is_class() or ftype == f.PROP_GET then
+    if f:is_class() then
+        fparam = "Efl_Class *klass"
+    elseif f:is_const() or ftype == f.PROP_GET then
         fparam = "const Eo *obj"
     end