Fixes to sq_setprintfunc due to Squirrel API changes
authorTobias Markus <tobbi@mozilla-uk.org>
Tue, 12 Aug 2014 23:50:32 +0000 (01:50 +0200)
committerTobias Markus <tobbi@mozilla-uk.org>
Tue, 12 Aug 2014 23:50:32 +0000 (01:50 +0200)
src/scripting/squirrel_util.cpp

index 2c86390..e2d13ba 100644 (file)
@@ -89,7 +89,7 @@ void init_squirrel(bool enable_debugger)
   sq_pop(global_vm, 1);
 
   // register print function
-  sq_setprintfunc(global_vm, printfunc);
+  sq_setprintfunc(global_vm, printfunc, printfunc);
   // register default error handlers
   sqstd_seterrorhandlers(global_vm);