/usr/include/luabind
NameSizeModeActions
detail/-0755rm
adopt_policy.hpp50910644editdlrm
back_reference.hpp31110644editdlrm
back_reference_fwd.hpp14950644editdlrm
build_information.hpp20150644editdlrm
class.hpp274900644editdlrm
class_info.hpp17040644editdlrm
config.hpp52320644editdlrm
container_policy.hpp49510644editdlrm
copy_policy.hpp13130644editdlrm
dependency_policy.hpp26910644editdlrm
discard_result_policy.hpp25120644editdlrm
error.hpp33450644editdlrm
error_callback_fun.hpp17500644editdlrm
exception_handler.hpp20860644editdlrm
from_stack.hpp14850644editdlrm
function.hpp15190644editdlrm
function_converter.hpp40210644editdlrm
function_introspection.hpp19490644editdlrm
get_main_thread.hpp5220644editdlrm
get_pointer.hpp15540644editdlrm
handle.hpp42180644editdlrm
intrusive_ptr_converter.hpp17890644editdlrm
iterator_policy.hpp29820644editdlrm
luabind.hpp13560644editdlrm
lua_include.hpp26650644editdlrm
lua_state_fwd.hpp13570644editdlrm
make_function.hpp32380644editdlrm
nil.hpp13680644editdlrm
no_dependency.hpp9030644editdlrm
object.hpp12910644editdlrm
object_fwd.hpp3310644editdlrm
open.hpp13710644editdlrm
operator.hpp89930644editdlrm
out_value_policy.hpp120290644editdlrm
prefix.hpp12650644editdlrm
raw_policy.hpp24260644editdlrm
return_reference_to_policy.hpp26610644editdlrm
scope.hpp29440644editdlrm
set_package_preload.hpp24520644editdlrm
shared_ptr_converter.hpp52740644editdlrm
stack.hpp40160644editdlrm
std_shared_ptr_converter.hpp22710644editdlrm
tag_function.hpp16220644editdlrm
typeid.hpp24980644editdlrm
value_wrapper.hpp42410644editdlrm
version.hpp5130644editdlrm
weak_ref.hpp18340644editdlrm
wrapper_base.hpp59870644editdlrm
yield_policy.hpp17340644editdlrm
Edit: /usr/include/luabind/stack.hpp (4016B)
#ifndef LUABIND_STACK_HPP_INCLUDED #define LUABIND_STACK_HPP_INCLUDED #include #include #include #include #include #include #include #include namespace luabind { namespace detail { namespace mpl = boost::mpl; template void push_aux(lua_State* L, T& value, ConverterGenerator*) { typedef typename boost::mpl::if_< boost::is_reference_wrapper , BOOST_DEDUCED_TYPENAME boost::unwrap_reference::type& , T >::type unwrapped_type; typename mpl::apply_wrap2< ConverterGenerator,unwrapped_type,cpp_to_lua >::type cv; cv.apply( L , boost::implicit_cast< BOOST_DEDUCED_TYPENAME boost::unwrap_reference::type& >(value) ); } } // namespace detail template void push(lua_State* L, T& value, Policies const&) { typedef typename detail::find_conversion_policy< 0 , Policies >::type converter_policy; push_aux(L, value, static_cast(0)); } template void push(lua_State* L, T& value) { push(L, value, detail::null_type()); } namespace detail { template< class T , class Policies , class ErrorPolicy , class ReturnType > ReturnType from_lua_aux( lua_State* L , int idx , T* , Policies* , ErrorPolicy* , ReturnType* ) { #ifndef LUABIND_NO_ERROR_CHECKING if (!L) return ErrorPolicy::handle_error(L, typeid(void)); #endif typedef typename detail::find_conversion_policy< 0 , Policies >::type converter_generator; typename mpl::apply_wrap2::type cv; if (cv.match(L, LUABIND_DECORATE_TYPE(T), idx) < 0) { return ErrorPolicy::handle_error(L, typeid(T)); } return cv.apply(L, LUABIND_DECORATE_TYPE(T), idx); } # ifdef BOOST_MSVC # pragma warning(push) # pragma warning(disable:4702) // unreachable code # endif template struct throw_error_policy { static T handle_error(lua_State* L, type_id const& type_info) { #ifndef LUABIND_NO_EXCEPTIONS throw cast_failed(L, type_info); #else cast_failed_callback_fun e = get_cast_failed_callback(); if (e) e(L, type_info); assert(0 && "object_cast failed. If you want to handle this error use " "luabind::set_error_callback()"); std::terminate(); return *(typename boost::remove_reference::type*)0; #endif } }; # ifdef BOOST_MSVC # pragma warning(pop) # endif template struct nothrow_error_policy { static boost::optional handle_error(lua_State*, type_id const&) { return boost::optional(); } }; } // namespace detail template T from_lua(lua_State* L, int idx, Policies const&) { return detail::from_lua_aux( L , idx , static_cast(0) , static_cast(0) , static_cast*>(0) , static_cast(0) ); } template T from_lua(lua_State* L, int idx) { return from_lua(L, idx, detail::null_type()); } template boost::optional from_lua_nothrow(lua_State* L, int idx, Policies const&) { return detail::from_lua_aux( L , idx , static_cast(0) , static_cast(0) , static_cast*>(0) , static_cast*>(0) ); } template boost::optional from_lua_nothrow(lua_State* L, int idx) { return from_lua_nothrow(L, idx, detail::null_type()); } } // namespace luabind #endif // LUABIND_STACK_HPP_INCLUDED