- fixed missing virtual destructor warning in squirrel header
SVN-Revision: 3388
if(global_vm == NULL)
throw std::runtime_error("Couldn't initialize squirrel vm");
-#ifdef ENABLE_SQDBG
if(enable_debugger) {
+#ifdef ENABLE_SQDBG
sq_enabledebuginfo(global_vm, SQTrue);
debugger = sq_rdbg_init(global_vm, 1234, SQFalse);
if(debugger == NULL)
if(SQ_FAILED(sq_rdbg_waitforconnections(debugger)))
throw SquirrelError(global_vm, "Waiting for debug clients failed");
log_info << "debug client connected." << std::endl;
- }
#endif
+ }
sq_pushroottable(global_vm);
if(sqstd_register_bloblib(global_vm) < 0)
#define SQSTD_STREAM_TYPE_TAG 0x80000000\r
\r
struct SQStream {\r
+ virtual ~SQStream() { };\r
virtual SQInteger Read(void *buffer, SQInteger size) = 0;\r
virtual SQInteger Write(void *buffer, SQInteger size) = 0;\r
virtual SQInteger Flush() = 0;\r