Skip to content

Commit

Permalink
Add missing cassert includes
Browse files Browse the repository at this point in the history
  • Loading branch information
ajtribick committed Dec 2, 2024
1 parent 3ae831e commit ec8fddd
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/celengine/body.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include "body.h"

#include <algorithm>
#include <cassert>
#include <cmath>
#include <utility>

Expand Down
1 change: 1 addition & 0 deletions src/celengine/category.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "category.h"

#include <algorithm>
#include <cassert>
#include <initializer_list>
#include <utility>

Expand Down
1 change: 1 addition & 0 deletions src/celengine/glmarker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
// of the License, or (at your option) any later version.

#include <array>
#include <cassert>
#include <cstddef>

#include <celcompat/numbers.h>
Expand Down
1 change: 1 addition & 0 deletions src/celengine/rendcontext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
// of the License, or (at your option) any later version.

#include <algorithm>
#include <cassert>
#include <cstddef>

#include <celrender/gl/vertexobject.h>
Expand Down
2 changes: 1 addition & 1 deletion src/celengine/texture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ cubeVector(int face, float s, float t)
v = Eigen::Vector3f(-s, -t, -1.0f);
break;
default:
// assert(false);
assert(false);
break;
}

Expand Down
1 change: 1 addition & 0 deletions src/celestia/celestiacore.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#pragma once

#include <array>
#include <cassert>
#include <fstream>
#include <locale>
#include <string>
Expand Down
1 change: 1 addition & 0 deletions src/celscript/lua/celx_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

#pragma once

#include <cassert>
#include <iterator>
#include <memory>
#include <map>
Expand Down
1 change: 1 addition & 0 deletions src/celscript/lua/celx_object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.

#include <cassert>
#include <cstring>
#include <iostream>

Expand Down
2 changes: 1 addition & 1 deletion src/celscript/lua/celx_phase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.

#include <assert.h>
#include <cassert>
#include "celx.h"
#include "celx_internal.h"
#include "celx_phase.h"
Expand Down
2 changes: 2 additions & 0 deletions src/celutil/indexlist.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.

#include <cassert>
#include <limits>
#include <type_traits>
#include <vector>

namespace celestia::util
Expand Down

0 comments on commit ec8fddd

Please sign in to comment.