Changeset - r12995:63490f079d8e
[Not reviewed]
master
0 1 0
yexo - 15 years ago 2009-09-10 23:14:21
yexo@openttd.org
(svn r17499) -Fix (r17498): remove 2 unused functions so some compilers stop warning about them
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/3rdparty/squirrel/sqstdlib/sqstdmath.cpp
Show inline comments
 
@@ -18,12 +18,13 @@
 
	sq_getfloat(v,2,&p1); \
 
	sq_getfloat(v,3,&p2); \
 
	sq_pushfloat(v,(SQFloat)_funcname(p1,p2)); \
 
	return 1; \
 
}
 

	
 
#ifdef EXPORT_DEFAULT_SQUIRREL_FUNCTIONS
 
static SQInteger math_srand(HSQUIRRELVM v)
 
{
 
	SQInteger i;
 
	if(SQ_FAILED(sq_getinteger(v,2,&i)))
 
		return sq_throwerror(v,_SC("invalid param"));
 
	srand((unsigned int)i);
 
@@ -32,12 +33,13 @@ static SQInteger math_srand(HSQUIRRELVM 
 

	
 
static SQInteger math_rand(HSQUIRRELVM v)
 
{
 
	sq_pushinteger(v,rand());
 
	return 1;
 
}
 
#endif /* EXPORT_DEFAULT_SQUIRREL_FUNCTIONS */
 

	
 
static SQInteger math_abs(HSQUIRRELVM v)
 
{
 
	SQInteger n;
 
	sq_getinteger(v,2,&n);
 
	sq_pushinteger(v,(SQInteger)abs((int)n));
0 comments (0 inline, 0 general)