parent
9432fd6381
commit
ee2d4ef6e6
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
#ifdef NDEBUG
|
#ifdef NDEBUG
|
||||||
|
|
||||||
// From http://cnicholson.net/2009/02/stupid-c-tricks-adventures-in-assert/
|
// From https://web.archive.org/web/20210117002833/http://cnicholson.net/2009/02/stupid-c-tricks-adventures-in-assert/
|
||||||
# define dtAssert(x) do { (void)sizeof(x); } while((void)(__LINE__==-1),false)
|
# define dtAssert(x) do { (void)sizeof(x); } while((void)(__LINE__==-1),false)
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
#ifdef NDEBUG
|
#ifdef NDEBUG
|
||||||
|
|
||||||
// From http://cnicholson.net/2009/02/stupid-c-tricks-adventures-in-assert/
|
// From https://web.archive.org/web/20210117002833/http://cnicholson.net/2009/02/stupid-c-tricks-adventures-in-assert/
|
||||||
# define rcAssert(x) do { (void)sizeof(x); } while ((void)(__LINE__==-1), false)
|
# define rcAssert(x) do { (void)sizeof(x); } while ((void)(__LINE__==-1), false)
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
@ -34,7 +34,7 @@ static bool buildMeshAdjacency(unsigned short* polys, const int npolys,
|
|||||||
const int nverts, const int vertsPerPoly)
|
const int nverts, const int vertsPerPoly)
|
||||||
{
|
{
|
||||||
// Based on code by Eric Lengyel from:
|
// Based on code by Eric Lengyel from:
|
||||||
// http://www.terathon.com/code/edges.php
|
// https://web.archive.org/web/20080704083314/http://www.terathon.com/code/edges.php
|
||||||
|
|
||||||
int maxEdgeCount = npolys*vertsPerPoly;
|
int maxEdgeCount = npolys*vertsPerPoly;
|
||||||
unsigned short* firstEdge = (unsigned short*)rcAlloc(sizeof(unsigned short)*(nverts + maxEdgeCount), RC_ALLOC_TEMP);
|
unsigned short* firstEdge = (unsigned short*)rcAlloc(sizeof(unsigned short)*(nverts + maxEdgeCount), RC_ALLOC_TEMP);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user