1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00

1.8.7 shim for SIZET2NUM()

This commit is contained in:
Charles Lowell 2012-06-08 07:31:44 -05:00
parent bc5e24760f
commit 77a2180dfa

View file

@ -1,5 +1,13 @@
#include "rr.h" #include "rr.h"
#if !defined(SIZET2NUM)
# if SIZEOF_SIZE_T == SIZEOF_LONG
# define SIZET2NUM(n) ULONG2NUM(n)
# else
# define SIZET2NUM(n) ULL2NUM(n)
# endif
#endif /* ! defined(SIZET2NUM) */
namespace rr { namespace rr {
void HeapStatistics::Init() { void HeapStatistics::Init() {
ClassBuilder("HeapStatistics"). ClassBuilder("HeapStatistics").