Mercurial > hg > openttd
diff src/script/squirrel_std.cpp @ 11183:6061b52c64cb draft
(svn r15535) -Fix (r15460, pre noai merge): use '.' as 'any' for squirrel calls typechecking as stated in squirrel docs
author | glx <glx@openttd.org> |
---|---|
date | Sat, 21 Feb 2009 00:43:18 +0000 (2009-02-21) |
parents | cbfc5f85d597 |
children | dc5795cc34cb |
line wrap: on
line diff
--- a/src/script/squirrel_std.cpp +++ b/src/script/squirrel_std.cpp @@ -101,15 +101,15 @@ { /* 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"); }