Rice  3.0.0
protect.hpp
Go to the documentation of this file.
1 #ifndef Rice__protect__hpp_
2 #define Rice__protect__hpp_
3 
4 // This causes problems with certain C++ libraries
5 #undef TYPE
6 
7 #include "Object_defn.hpp"
8 
9 namespace Rice
10 {
11 
18 
30 template<typename Fun, typename ...ArgT>
31 VALUE protect(Fun fun, ArgT const &... args);
32 
33 } // namespace Rice
34 
35 #include "protect.ipp"
36 
37 #endif // Rice__protect__hpp_
38 
VALUE protect(Fun fun, ArgT const &... args)
Call the C function f with arguments (arg1, arg2, ...).