From 99062d624ce86c5b1348a280ffd0e0e7b163db7d Mon Sep 17 00:00:00 2001 From: Michal Kottman Date: Tue, 27 Apr 2010 23:58:36 +0200 Subject: [PATCH] generate binding for protected functions --- generator/classes.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generator/classes.lua b/generator/classes.lua index 6b5d375..35d2acc 100644 --- a/generator/classes.lua +++ b/generator/classes.lua @@ -460,7 +460,7 @@ function print_wrappers() if f.wrapper_code then local out = 'static int lqt_bind'..f.xarg.id ..' (lua_State *L) {\n'.. f.wrapper_code .. '}\n' - if f.xarg.access=='public' then + if f.xarg.access~='private' then --print_meta(out) wrappers = wrappers .. out .. '\n' meta[f] = f.xarg.name @@ -472,7 +472,7 @@ function print_wrappers() if f.wrapper_code then local out = 'static int lqt_bind'..f.xarg.id ..' (lua_State *L) {\n'.. f.wrapper_code .. '}\n' - if f.xarg.access=='public' then + if f.xarg.access~='private' then --print_meta(out) wrappers = wrappers .. out .. '\n' meta[f] = 'new' -- 2.11.4.GIT