On Nov 12, 2007 5:35 PM, Darwin Slattery <[EMAIL PROTECTED]> wrote: > > Thanks for your reply. > > The approach worked fine but I'd just like to clarify one point. I found that > using a hook_lua_namespace of 'wxluanstest.nsa' created a table with this > name in adddition to the 'wxluanstest' table i.e. it did not create an 'nsa' > table inside the already existing 'wxluanstest' table. I just want to know if > this what you expected to happen? I ended up changing the hook_lua_namespace > to 'wxluanstest_nsa' so that it wouldn't cause a syntax error in lua. >
Right, code has to be added to break up hook_lua_namespace by '.' and the tables created. I wanted to wait to see if there wasn't some problem with the C++ side before changing anything. I'll try to get around to it tonight. > I also used the following value for hook_cpp_binding_header_includes: > "#include \"wxbind/include/wxbind.h\"\nnamespace nsa {}\nusing namespace nsa;" Good, I hoped it was this simple. Just wondering, why do you need "namespace nsa {}"? Is it because you're not #including a header that defines it? Regards, John ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users