X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fscripting%2Fwrapper_util.hpp;h=a6cfa2360ae5d100915df800ea836237bd58b7db;hb=85a02e771388b133940b45e29768e697a29c1a36;hp=63e185d3a74ce5b5abecb51b41a463e8135e26d8;hpb=5b7f9214cb929399f1a855ef5807018a9447d510;p=supertux.git diff --git a/src/scripting/wrapper_util.hpp b/src/scripting/wrapper_util.hpp index 63e185d3a..a6cfa2360 100644 --- a/src/scripting/wrapper_util.hpp +++ b/src/scripting/wrapper_util.hpp @@ -2,32 +2,10 @@ #define __WRAPPERUTIL_HPP__ #include -#include +#include #include -struct WrappedFunction { - const char* name; - SQFUNCTION f; -}; -struct WrappedClass { - const char* name; - WrappedFunction* functions; -}; - -class SquirrelError : public std::exception -{ -public: - SquirrelError(HSQUIRRELVM v, const std::string& message) throw(); - virtual ~SquirrelError() throw(); - - const char* what() const throw(); -private: - std::string message; -}; - -void register_functions(HSQUIRRELVM v, WrappedFunction* functions); -void register_classes(HSQUIRRELVM v, WrappedClass* classes); - +std::string squirrel2string(HSQUIRRELVM v, int i); void print_squirrel_stack(HSQUIRRELVM v); #endif