/
usr
/
include
/
luabind
/
/usr/include/luabind
mkdir
upload
Name
Size
Mode
Actions
detail/
-
0755
rm
adopt_policy.hpp
5091
0644
edit
dl
rm
back_reference.hpp
3111
0644
edit
dl
rm
back_reference_fwd.hpp
1495
0644
edit
dl
rm
build_information.hpp
2015
0644
edit
dl
rm
class.hpp
27490
0644
edit
dl
rm
class_info.hpp
1704
0644
edit
dl
rm
config.hpp
5232
0644
edit
dl
rm
container_policy.hpp
4951
0644
edit
dl
rm
copy_policy.hpp
1313
0644
edit
dl
rm
dependency_policy.hpp
2691
0644
edit
dl
rm
discard_result_policy.hpp
2512
0644
edit
dl
rm
error.hpp
3345
0644
edit
dl
rm
error_callback_fun.hpp
1750
0644
edit
dl
rm
exception_handler.hpp
2086
0644
edit
dl
rm
from_stack.hpp
1485
0644
edit
dl
rm
function.hpp
1519
0644
edit
dl
rm
function_converter.hpp
4021
0644
edit
dl
rm
function_introspection.hpp
1949
0644
edit
dl
rm
get_main_thread.hpp
522
0644
edit
dl
rm
get_pointer.hpp
1554
0644
edit
dl
rm
handle.hpp
4218
0644
edit
dl
rm
intrusive_ptr_converter.hpp
1789
0644
edit
dl
rm
iterator_policy.hpp
2982
0644
edit
dl
rm
luabind.hpp
1356
0644
edit
dl
rm
lua_include.hpp
2665
0644
edit
dl
rm
lua_state_fwd.hpp
1357
0644
edit
dl
rm
make_function.hpp
3238
0644
edit
dl
rm
nil.hpp
1368
0644
edit
dl
rm
no_dependency.hpp
903
0644
edit
dl
rm
object.hpp
1291
0644
edit
dl
rm
object_fwd.hpp
331
0644
edit
dl
rm
open.hpp
1371
0644
edit
dl
rm
operator.hpp
8993
0644
edit
dl
rm
out_value_policy.hpp
12029
0644
edit
dl
rm
prefix.hpp
1265
0644
edit
dl
rm
raw_policy.hpp
2426
0644
edit
dl
rm
return_reference_to_policy.hpp
2661
0644
edit
dl
rm
scope.hpp
2944
0644
edit
dl
rm
set_package_preload.hpp
2452
0644
edit
dl
rm
shared_ptr_converter.hpp
5274
0644
edit
dl
rm
stack.hpp
4016
0644
edit
dl
rm
std_shared_ptr_converter.hpp
2271
0644
edit
dl
rm
tag_function.hpp
1622
0644
edit
dl
rm
typeid.hpp
2498
0644
edit
dl
rm
value_wrapper.hpp
4241
0644
edit
dl
rm
version.hpp
513
0644
edit
dl
rm
weak_ref.hpp
1834
0644
edit
dl
rm
wrapper_base.hpp
5987
0644
edit
dl
rm
yield_policy.hpp
1734
0644
edit
dl
rm
Edit:
/usr/include/luabind/typeid.hpp
(2498B)
// Copyright Daniel Wallin 2008. Use, modification and distribution is // subject to the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #ifndef LUABIND_TYPEID_081227_HPP # define LUABIND_TYPEID_081227_HPP # include <luabind/detail/primitives.hpp> # include <boost/operators.hpp> # include <cstdlib> # include <cstring> # include <string> # include <typeinfo> // boost/units/detail/utility.hpp # if defined(__GLIBCXX__) || defined(__GLIBCPP__) # define LUABIND_USE_DEMANGLING # include <cxxabi.h> # endif // __GNUC__ // See https://svn.boost.org/trac/boost/ticket/754 # if (defined(__GNUC__) && __GNUC__ >= 3) \ || defined(_AIX) \ || (defined(__sgi) && defined(__host_mips)) \ || (defined(__hpux) && defined(__HP_aCC)) \ || (defined(linux) && defined(__INTEL_COMPILER) && defined(__ICC)) # define LUABIND_SAFE_TYPEID # endif namespace luabind { # ifdef BOOST_MSVC # pragma warning(push) // std::type_info::before() returns int, rather than bool. // At least on MSVC7.1, this is true for the comparison // operators as well. # pragma warning(disable:4800) # endif class type_id : boost::less_than_comparable<type_id> { public: type_id() : m_id(&typeid(detail::null_type)) {} type_id(std::type_info const& id) : m_id(&id) {} bool operator!=(type_id const& other) const { # ifdef LUABIND_SAFE_TYPEID return std::strcmp(m_id->name(), other.m_id->name()) != 0; # else return *m_id != *other.m_id; # endif } bool operator==(type_id const& other) const { # ifdef LUABIND_SAFE_TYPEID return std::strcmp(m_id->name(), other.m_id->name()) == 0; # else return *m_id == *other.m_id; # endif } bool operator<(type_id const& other) const { # ifdef LUABIND_SAFE_TYPEID return std::strcmp(m_id->name(), other.m_id->name()) < 0; # else return m_id->before(*other.m_id); # endif } std::string name() const { # ifdef LUABIND_USE_DEMANGLING int status; char* buf = abi::__cxa_demangle(m_id->name(), 0, 0, &status); if (buf != 0) { std::string demangled_name(buf); std::free(buf); return demangled_name; } # endif return m_id->name(); } private: std::type_info const* m_id; }; # ifdef BOOST_MSVC # pragma warning(pop) # endif } // namespace luabind #endif // LUABIND_TYPEID_081227_HPP
Save
cmd:
run