c_m3d: Make use of forward declarations (#104)

Some inline helper function of the included files in the header make use
of functions defined within it. This can cause a circular dependency
cycle if said helper functions are ever defined within the classes.

To break this potential cycle, we can use forward declarations.

This also has the benefit of reducing preprocessing overhead a little
bit.
This commit is contained in:
LC
2021-01-26 21:29:28 -05:00
committed by GitHub
parent 1e105b87f1
commit c37cd04585
4 changed files with 27 additions and 13 deletions
+10
View File
@@ -1,6 +1,16 @@
/* c_m3d.cpp autogenerated by split.py v0.3 at 2021-01-01 14:58:46.459661 */
#include "SComponent/c_m3d.h"
#include "SComponent/c_m3d_g_aab.h"
#include "SComponent/c_m3d_g_cps.h"
#include "SComponent/c_m3d_g_cyl.h"
#include "SComponent/c_m3d_g_lin.h"
#include "SComponent/c_m3d_g_pla.h"
#include "SComponent/c_m3d_g_sph.h"
#include "SComponent/c_m3d_g_tri.h"
#include "SComponent/c_sxyz.h"
#include "SComponent/c_xyz.h"
#include "global.h"
extern f32 lbl_80455118; // SComponent::@2256, 0.0
extern f32 lbl_80455138; // SComponent::@2273, 1.0
+2 -1
View File
@@ -1,6 +1,7 @@
/* c_m3d_g_lin.cpp autogenerated by split.py v0.3 at 2021-01-01 14:48:45.519641 */
#include "SComponent/c_m3d.h"
#include "SComponent/c_m3d_g_lin.h"
#include "mtx_vec.h"
// __ct__8cM3dGLinFRC4cXyzRC4cXyz
cM3dGLin::cM3dGLin(const cXyz& pStart, const cXyz& pEnd) : mStart(pStart), mEnd(pEnd) {}