summaryrefslogtreecommitdiffstats
path: root/src/Bindings/BindingsProcessor.lua
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2016-06-05 22:04:56 +0200
committerMattes D <github@xoft.cz>2016-07-18 22:11:38 +0200
commitb11605e951fe43a55d89099d5b6cbec2d51d90a5 (patch)
treeb69cdcd987c019112553c3e88c9f193a8bf407e3 /src/Bindings/BindingsProcessor.lua
parentBindings: Don't generate docs for private symbols, mark static symbols. (diff)
downloadcuberite-b11605e951fe43a55d89099d5b6cbec2d51d90a5.tar
cuberite-b11605e951fe43a55d89099d5b6cbec2d51d90a5.tar.gz
cuberite-b11605e951fe43a55d89099d5b6cbec2d51d90a5.tar.bz2
cuberite-b11605e951fe43a55d89099d5b6cbec2d51d90a5.tar.lz
cuberite-b11605e951fe43a55d89099d5b6cbec2d51d90a5.tar.xz
cuberite-b11605e951fe43a55d89099d5b6cbec2d51d90a5.tar.zst
cuberite-b11605e951fe43a55d89099d5b6cbec2d51d90a5.zip
Diffstat (limited to '')
-rw-r--r--src/Bindings/BindingsProcessor.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Bindings/BindingsProcessor.lua b/src/Bindings/BindingsProcessor.lua
index f48bc455f..28a6a053c 100644
--- a/src/Bindings/BindingsProcessor.lua
+++ b/src/Bindings/BindingsProcessor.lua
@@ -785,10 +785,10 @@ local function genVariableMemberDocs(a_Self, a_Functions, a_Variables, a_Constan
DoxyComment = a_Self.DoxyComment,
}
- if (a_Self.csetname) then
- a_Variables[a_Self.lname] = desc
- else
+ if (string.find(a_Self.type,'const%s+') or string.find(a_Self.mod, 'tolua_readonly') or string.find(a_Self.mod, 'tolua_inherits')) then
a_Constants[a_Self.lname] = desc
+ else
+ a_Variables[a_Self.lname] = desc
end
end