File diff r11182:3538f6e8d64e → r11183:50e33a2511bf
src/script/squirrel_std.cpp
Show inline comments
 
@@ -101,15 +101,15 @@ void squirrel_register_global_std(Squirr
 
{
 
	/* 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");
 
}