54ca2e987353c44ff7b992bfe43e188d953cc573
[supertux.git] / src / scripting / wrapper_util.hpp
1 #ifndef __WRAPPERUTIL_HPP__
2 #define __WRAPPERUTIL_HPP__
3
4 #include <squirrel.h>
5 #include <exception>
6 #include <sstream>
7 #include <string>
8
9 class SquirrelError : public std::exception
10 {
11 public:
12   SquirrelError(HSQUIRRELVM v, const std::string& message) throw();
13   virtual ~SquirrelError() throw();
14
15   const char* what() const throw();
16 private:
17   std::string message;
18 };
19
20 void print_squirrel_stack(HSQUIRRELVM v);
21
22 #endif