[luabind] C++ function called twice!!
Brought to you by:
arvidn,
daniel_wallin
From: Kristoffer D. <kri...@li...> - 2012-01-31 22:12:18
|
Luabind 0.9 (090216), Lua 5.1.3, VC++ 2010 SP1, debug mode. I have a complex script with a function. Let's call it "foo". I call "foo" using call_function<>. "foo" then calls C++ function "bar". You get the idea :P function foo(blah a) a:bar(x)end I have debugged this thoroughly and I'm convinced that "bar" is called twice. Putting debug printouts around it and catching breakpoints in my C++ code proves this. There is only one call to "bar" from Lua, yet it seems to call it twice. My parameters are pushed to the Lua stack ONCE. Has anyone of you guys encountered this weird behavior? Is it a known bug? My guess is that this is a bug inside LUA! Please advise! |