Glenn Maynard
6b4f3e6c4f
For conformance with general expectations, use M_PI, not PI.
...
(This is in global.h, not RageUtil.h, because we include math.h in global.h, and
M_PI is generally associated with math.h. As some systems do provide it
in math.h, if we put it in RageUtil.h then we'll suffer breakage when people
on those systems use M_PI without including RageUtil.h.)
2006-01-30 01:18:42 +00:00
Steve Checkoway
db075e472d
I forget why I thought I needed this. It won't be included again due to GLOBAL_H anyway.
2006-01-28 03:09:46 +00:00
Chris Danford
7f821e8cfc
CString -> RString
2006-01-22 01:00:06 +00:00
Steve Checkoway
afe2e0efd9
The OS X 10.4u SDK defines ALIGN(p) as (((unsigned int)(p) + ALIGNBYTES) &~ ALIGNBYTES) so use SM_ALIGN instead.
2006-01-15 12:55:00 +00:00
Glenn Maynard
831c4860f5
revert this for now. We do FAIL_M(s()), where s() returns a CString; doing this
...
causes the return value to go out of scope, and the char* to be invalid.
2006-01-01 05:48:06 +00:00
Steve Checkoway
e9d4fb0cdf
machine/endian.h is getting picked up on OS X with gcc 4.0 but no endian.h exists.
2005-12-30 14:30:39 +00:00
Steve Checkoway
3c8f18483b
Make ASSERT_M and FAIL_M into safe function-like macros.
2005-12-30 13:26:22 +00:00
Glenn Maynard
79c00ae191
Don't evaluate MESSAGE twice in FAIL_M. Reduces the code
...
cost of assertions.
2005-12-30 08:01:47 +00:00
Steve Checkoway
8d93b172ef
Cleanup comment, flatten preprocessor directives.
2005-12-23 07:34:38 +00:00
Steve Checkoway
f688db98a8
Fix compile. "The keyword __attribute__ allows you to specify special attributes when making a declaration." -- http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html
2005-12-23 06:15:43 +00:00
Steve Checkoway
87c3fd131a
Cleanup.
2005-12-21 07:12:45 +00:00
Glenn Maynard
d657b99b6f
Fix likely() and unlikely() when x is not 0 or 1. Remove an old
...
comment and declare some math functions CONST_FUNCTION.
2005-12-21 06:26:10 +00:00
Chris Danford
ec51af900e
CString -> RString for files used by smpackage
2005-12-10 08:15:44 +00:00
Chris Danford
37f82b43f7
remove CStringArray #define
2005-12-09 21:36:22 +00:00
Chris Danford
dc35d10ee4
move our CStirng into a namespace to fix conflict with MFC
2005-12-09 19:15:31 +00:00
Glenn Maynard
833903e7ef
branch optimization to reduce the cost of asserts
2005-08-24 17:42:01 +00:00
Glenn Maynard
0cedd92c67
move into archutils; only VC6 needs this
2005-08-23 19:55:23 +00:00
Glenn Maynard
93302c03aa
add CONST_FUNCTION. See: http://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/Function-Attributes.html
2005-07-28 02:45:17 +00:00
Chris Danford
4de7b7c6f8
fix uninitialized variable (causing stuck life meter?)
2005-05-06 01:34:23 +00:00
Glenn Maynard
2de326fb23
ASSERT is too assertive. If it's probably possible to continue past
...
an unexpected case, it's better to warn loudly and then move on, instead
of crashing.
2005-04-29 20:15:12 +00:00
Glenn Maynard
30976b2217
align macro
2005-01-02 22:54:12 +00:00
Glenn Maynard
3b6a5e9957
strtof fallback
2004-08-10 19:12:03 +00:00
Steve Checkoway
8725267081
Remove RAGE_ASSERT and RAGE_ASSERT_M
2004-06-16 00:38:58 +00:00
Glenn Maynard
5a81e7a80e
move some vc hacks into arch_setup
2004-06-13 19:06:54 +00:00
Glenn Maynard
c6d64feefc
LITTLE_ENDIAN, BIG_ENDIAN, BYTE_ORDER
2004-06-13 07:32:44 +00:00
Glenn Maynard
82786ef70b
ENDIAN_LITTLE/ENDIAN_BIG check
2004-06-12 08:16:02 +00:00
Glenn Maynard
2759cda924
archutils/Unix/arch_setup.h
2004-06-12 07:47:19 +00:00
Glenn Maynard
7061f8109d
license update
2004-06-08 05:36:07 +00:00
Chris Danford
d706a1e214
correct comment for correct scoping rules in VC6
2004-05-03 23:58:51 +00:00
Chris Danford
258c6a263c
hack for correct scoping rules in VC6
2004-05-03 23:56:40 +00:00
Chris Danford
5484fc6abc
add alias for const CString&
2004-04-07 20:48:11 +00:00
Steve Checkoway
20a8bab45c
Clean up includes.
2004-04-05 05:22:32 +00:00
Glenn Maynard
5fc16eebea
sm_crash: take a reason
...
when failing an assertion, pass the reason to sm_crash, in case we don't make it to logging checkpoints
2004-03-26 02:55:13 +00:00
Steve Checkoway
b963effa31
Compile SM using a precompiled prefix header on OS X.
2004-03-14 08:53:09 +00:00
Glenn Maynard
142be7ea83
stop including "windows.h" everywhere
...
make sure sm_crash shows up in stack traces
2004-02-25 01:35:19 +00:00
Chris Danford
08d91fe905
call DebugBreak on fatal error in _WINDOWS
2004-01-25 01:55:32 +00:00
Steve Checkoway
7f76e630c5
rename crash() to sm_crash() to fix conflicting symbols.
2004-01-21 04:43:38 +00:00
Glenn Maynard
dddaaa7e22
hack to quiet a warning
2004-01-21 03:17:14 +00:00
Glenn Maynard
7df49d29b6
fix llabs in g++ 3.3
2004-01-20 00:09:50 +00:00
Glenn Maynard
3e2a32dac3
stdint.h for int64_t
2004-01-19 22:19:09 +00:00
Glenn Maynard
14759e47cf
RAGE_ASSERT_M -> ASSERT_M
...
RAGE_ASSERT_M( 0, "foo" ) -> FAIL_M( "foo" )
FAIL_M doesn't return, so we don't need bogus control paths to shut up warnings
2004-01-19 20:44:27 +00:00
Glenn Maynard
78e4763149
remove SLASH
2004-01-19 20:39:39 +00:00
Glenn Maynard
beee99619c
SLASH is going away
2003-12-07 04:16:48 +00:00
Glenn Maynard
a6b072c9ca
Move debugging options into a separate INI section, since I use them
...
very frequently, and they're mostly not available in the menus.
Add LogCheckpoints.
Move checkpoint code into a namespace.
2003-11-24 00:23:18 +00:00
Glenn Maynard
0eaa9aa178
Move truncf, roundf fallbacks to the right place.
...
Fix BeatToNoteRow rounding backwards for negative numbers.
2003-10-27 03:45:15 +00:00
Glenn Maynard
47c0b33520
#define PRINTF
2003-09-19 00:50:01 +00:00
Glenn Maynard
c1406277a2
Portable RAGE_ASSERT.
2003-08-05 01:49:34 +00:00
Steve Checkoway
d3eda614ea
Use arch_setup.h on Darwin
2003-07-28 09:33:51 +00:00
Chris Danford
278cb4c3f1
runs on Xbox
2003-07-22 07:47:27 +00:00
William Reading
23deb5c2c6
config.h needs to be included for automake to work properly
2003-07-05 01:07:49 +00:00