ajwillia-ms pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=99f9789902d93bb4e8ba255c05cc02c8af0320ed

commit 99f9789902d93bb4e8ba255c05cc02c8af0320ed
Author: Andy Williams <a...@andywilliams.me>
Date:   Wed Dec 20 15:00:18 2017 +0000

    docs: Output correct signature for class method first parameter
---
 src/scripts/elua/apps/gendoc.lua | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/scripts/elua/apps/gendoc.lua b/src/scripts/elua/apps/gendoc.lua
index 51febf6c2e..842df515d8 100644
--- a/src/scripts/elua/apps/gendoc.lua
+++ b/src/scripts/elua/apps/gendoc.lua
@@ -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
 

-- 


Reply via email to