2010-02-09 41 views

回答

3

像这样的东西应该工作:

if (luabind::object f = luabind::globals(L)["f"]) 
{ 
    f(...); 
}