Skip to content

Commit

Permalink
remove throw
Browse files Browse the repository at this point in the history
  • Loading branch information
d954mas committed Jan 9, 2023
1 parent 25468d3 commit 4d441e7
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
1 change: 0 additions & 1 deletion main/objects/box.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ function Box:initialize(size)
self.size = vmath.vector3(size)

local shape = rp3d.createBoxShape(self.size)
pprint(shape)

end

Expand Down
1 change: 0 additions & 1 deletion main/test_scenes/cubes/cubes_scene.script
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ local function create_physics(self)
self.world = rp3d.createPhysicsWorld(settings)

for i=1,NB_CUBES do
print("BOX")
-- Create a cube and a corresponding rigid in the physics world
--Box* cube = new Box(true, BOX_SIZE, mPhysicsCommon, mPhysicsWorld, mMeshFolderPath);
local box_shape = Box(BOX_SIZE)
Expand Down
6 changes: 3 additions & 3 deletions reactphysics3d/include/reactphysics3d/containers/Map.h
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ class Map {
}
else {
assert(false);
throw std::runtime_error("The key and value pair already exists in the map");
//throw std::runtime_error("The key and value pair already exists in the map");
}
}
}
Expand Down Expand Up @@ -569,7 +569,7 @@ class Map {

if (entry == INVALID_INDEX) {
assert(false);
throw std::runtime_error("No item with given key has been found in the map");
//throw std::runtime_error("No item with given key has been found in the map");
}

return mEntries[entry].second;
Expand All @@ -582,7 +582,7 @@ class Map {

if (entry == INVALID_INDEX) {
assert(false);
throw std::runtime_error("No item with given key has been found in the map");
//throw std::runtime_error("No item with given key has been found in the map");
}

return mEntries[entry].second;
Expand Down
3 changes: 2 additions & 1 deletion reactphysics3d/include/reactphysics3d/utils/DefaultLogger.h
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,8 @@ class DefaultLogger : public Logger {
mFileStream(filePath, std::ios::binary) {

if(!mFileStream.is_open()) {
throw(std::runtime_error("ReactPhysics3D Logger: Unable to open an output stream to file " + mFilePath));
assert(false);
// throw(std::runtime_error("ReactPhysics3D Logger: Unable to open an output stream to file " + mFilePath));
}

// Write the header
Expand Down
3 changes: 2 additions & 1 deletion reactphysics3d/include/reactphysics3d/utils/Profiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ class Profiler {
mFileStream(filePath, std::ios::binary) {

if(!mFileStream.is_open()) {
throw(std::runtime_error("ReactPhysics3D Logger: Unable to open an output stream to file " + mFilePath));
assert(false);
// throw(std::runtime_error("ReactPhysics3D Logger: Unable to open an output stream to file " + mFilePath));
}
}

Expand Down

0 comments on commit 4d441e7

Please sign in to comment.