From 85ea21a5d018f1a403b1e91f88c3b1b83694d533 Mon Sep 17 00:00:00 2001 From: glx Date: Sat, 21 Feb 2009 00:43:18 +0000 Subject: (svn r15535) -Fix (r15460, pre noai merge): use '.' as 'any' for squirrel calls typechecking as stated in squirrel docs --- src/script/squirrel_std.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/script/squirrel_std.cpp') diff --git a/src/script/squirrel_std.cpp b/src/script/squirrel_std.cpp index 7cbdb4c43..a9f390f70 100644 --- a/src/script/squirrel_std.cpp +++ b/src/script/squirrel_std.cpp @@ -101,15 +101,15 @@ void squirrel_register_global_std(Squirrel *engine) { /* We don't use squirrel_helper here, as we want to register to the global * scope and not to a class. */ - engine->AddMethod("require", &SquirrelStd::require, 2, "?s"); - engine->AddMethod("notifyallexceptions", &SquirrelStd::notifyallexceptions, 2, "?b"); + engine->AddMethod("require", &SquirrelStd::require, 2, ".s"); + engine->AddMethod("notifyallexceptions", &SquirrelStd::notifyallexceptions, 2, ".b"); } void squirrel_register_std(Squirrel *engine) { /* We don't use squirrel_helper here, as we want to register to the global * scope and not to a class. */ - engine->AddMethod("abs", &SquirrelStd::abs, 2, "?i"); - engine->AddMethod("min", &SquirrelStd::min, 3, "?ii"); - engine->AddMethod("max", &SquirrelStd::max, 3, "?ii"); + engine->AddMethod("abs", &SquirrelStd::abs, 2, ".i"); + engine->AddMethod("min", &SquirrelStd::min, 3, ".ii"); + engine->AddMethod("max", &SquirrelStd::max, 3, ".ii"); } -- cgit v1.2.3-70-g09d2