1 #ifndef __WRAPPERUTIL_HPP__
2 #define __WRAPPERUTIL_HPP__
8 struct WrappedFunction {
14 WrappedFunction* functions;
17 class SquirrelError : public std::exception
20 SquirrelError(HSQUIRRELVM v, const std::string& message) throw();
21 virtual ~SquirrelError() throw();
23 const char* what() const throw();
28 void register_functions(HSQUIRRELVM v, WrappedFunction* functions);
29 void register_classes(HSQUIRRELVM v, WrappedClass* classes);
31 void expose_object(HSQUIRRELVM v, void* object, const char* type,
33 void print_squirrel_stack(HSQUIRRELVM v);