add MonthToString binding

This commit is contained in:
Glenn Maynard
2005-06-16 01:39:31 +00:00
parent e3970b10d5
commit dc13af28ac
+3
View File
@@ -169,8 +169,11 @@ static const CString MONTH_TO_NAME[MONTHS_IN_YEAR] =
CString MonthToString( int iMonthIndex )
{
if( iMonthIndex < 0 || iMonthIndex >= (int) sizeof(MONTH_TO_NAME) )
return "";
return MONTH_TO_NAME[iMonthIndex];
}
LuaFunction( MonthToString, MonthToString( IArg(1) ) );
CString LastWeekToString( int iLastWeekIndex )
{