From 4b97569b3a635260cc9ce71470fc9b09cfb38167 Mon Sep 17 00:00:00 2001 From: Mattes D Date: Tue, 12 May 2015 09:20:54 +0200 Subject: ToLua now generates cLuaState::Push() and GetStackValue() For classes exported through ToLua it generates the cLuaState::Push() and cLuaState::GetStackValue() functions, as well as the supporting forward declarations and typedefs. Renamed virtual_method_hooks.lua to BindingsProcessor.lua since it no longer provides virtual method hooks and instead does additional processing when generating the bindings. --- src/Bindings/virtual_method_hooks.lua | 44 ----------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 src/Bindings/virtual_method_hooks.lua (limited to 'src/Bindings/virtual_method_hooks.lua') 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 - - - - -- cgit v1.2.3