summaryrefslogtreecommitdiffstats
path: root/src/Bindings/virtual_method_hooks.lua
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-05-12 09:20:54 +0200
committerMattes D <github@xoft.cz>2015-05-12 09:20:54 +0200
commit4b97569b3a635260cc9ce71470fc9b09cfb38167 (patch)
tree70af92a6a479fcf58cc1b7dd7f9ac4105f01261f /src/Bindings/virtual_method_hooks.lua
parentToLua: Fixed LuaJit compatibility. (diff)
downloadcuberite-4b97569b3a635260cc9ce71470fc9b09cfb38167.tar
cuberite-4b97569b3a635260cc9ce71470fc9b09cfb38167.tar.gz
cuberite-4b97569b3a635260cc9ce71470fc9b09cfb38167.tar.bz2
cuberite-4b97569b3a635260cc9ce71470fc9b09cfb38167.tar.lz
cuberite-4b97569b3a635260cc9ce71470fc9b09cfb38167.tar.xz
cuberite-4b97569b3a635260cc9ce71470fc9b09cfb38167.tar.zst
cuberite-4b97569b3a635260cc9ce71470fc9b09cfb38167.zip
Diffstat (limited to '')
-rw-r--r--src/Bindings/virtual_method_hooks.lua44
1 files changed, 0 insertions, 44 deletions
diff --git a/src/Bindings/virtual_method_hooks.lua b/src/Bindings/virtual_method_hooks.lua
deleted file mode 100644
index 14b0bcae5..000000000
--- a/src/Bindings/virtual_method_hooks.lua
+++ /dev/null
@@ -1,44 +0,0 @@
-
--- virtual_method_hooks.lua
-
--- Implements additional processing that is done while generating the Lua bindings
-
-
-
-
-
-local access = {public = 0, protected = 1, private = 2}
-
-
-
-
-
-function parser_hook(s)
- local container = classContainer.curr -- get the current container
-
- -- process access-specifying labels (public, private, etc)
- do
- local b, e, label = string.find(s, "^%s*(%w*)%s*:[^:]") -- we need to check for [^:], otherwise it would match 'namespace::type'
- if b then
-
- -- found a label, get the new access value from the global 'access' table
- if access[label] then
- container.curr_member_access = access[label]
- end -- else ?
-
- return strsub(s, e) -- normally we would use 'e+1', but we need to preserve the [^:]
- end
- end
-end
-
-
-
-
-
-function post_output_hook()
- print("Bindings have been generated.")
-end
-
-
-
-