mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
Reverted Box2D errors back to asserts, because love's exceptions provided even less info
This commit is contained in:
@@ -19,13 +19,13 @@
|
||||
#ifndef B2_SETTINGS_H
|
||||
#define B2_SETTINGS_H
|
||||
|
||||
//#include <assert.h>
|
||||
#include <common/Exception.h>
|
||||
#include <assert.h>
|
||||
//#include <common/Exception.h>
|
||||
#include <cmath>
|
||||
|
||||
#define B2_NOT_USED(x) x
|
||||
//#define b2Assert(A) assert(A)
|
||||
#define b2Assert(A) {if(!(A)) throw love::Exception("Box2D error: " #A);}
|
||||
#define b2Assert(A) assert(A)
|
||||
//#define b2Assert(A) {if(!(A)) throw love::Exception("Box2D error: " #A);}
|
||||
|
||||
|
||||
// need to include NDS jtypes.h instead of
|
||||
|
||||
Reference in New Issue
Block a user