|
From: John L. <jla...@gm...> - 2007-11-12 23:26:32
|
On Nov 12, 2007 5:35 PM, Darwin Slattery <dar...@ho...> 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
|