Skip to content

Commit

Permalink
Remove the NS_AX_BEGIN and NS_AX_END macros. (axmolengine#2100)
Browse files Browse the repository at this point in the history
  • Loading branch information
j-jorge authored Aug 25, 2024
1 parent f14276c commit 15268dc
Show file tree
Hide file tree
Showing 943 changed files with 2,836 additions and 1,899 deletions.
5 changes: 3 additions & 2 deletions core/2d/Action.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ THE SOFTWARE.
#include "base/Director.h"
#include "base/UTF8.h"

NS_AX_BEGIN
namespace ax
{
//
// Action Base Class
//
Expand Down Expand Up @@ -298,4 +299,4 @@ void Follow::stop()
Action::stop();
}

NS_AX_END
}
5 changes: 3 additions & 2 deletions core/2d/Action.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ THE SOFTWARE.
#include "math/Math.h"
#include "base/ScriptSupport.h"

NS_AX_BEGIN
namespace ax
{

class Node;

Expand Down Expand Up @@ -445,6 +446,6 @@ class AX_DLL Follow : public Action
// end of actions group
/// @}

NS_AX_END
}

#endif // __ACTIONS_CCACTION_H__
5 changes: 3 additions & 2 deletions core/2d/ActionCamera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ THE SOFTWARE.
#include "2d/Node.h"
#include "platform/StdC.h"

NS_AX_BEGIN
namespace ax
{
//
// CameraAction
//
Expand Down Expand Up @@ -242,4 +243,4 @@ void OrbitCamera::sphericalRadius(float* newRadius, float* zenith, float* azimut
*newRadius = r / FLT_EPSILON;
}

NS_AX_END
}
5 changes: 3 additions & 2 deletions core/2d/ActionCamera.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ THE SOFTWARE.
#include "2d/ActionInterval.h"
#include "math/Math.h"

NS_AX_BEGIN
namespace ax
{

class Camera;

Expand Down Expand Up @@ -183,6 +184,6 @@ class AX_DLL OrbitCamera : public ActionCamera
// end of actions group
/// @}

NS_AX_END
}

#endif //__CCCAMERA_ACTION_H__
5 changes: 3 additions & 2 deletions core/2d/ActionCatmullRom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@

using namespace std;

NS_AX_BEGIN;
namespace ax
{

/*
* Implementation of PointArray
Expand Down Expand Up @@ -508,4 +509,4 @@ CatmullRomBy* CatmullRomBy::reverse() const
return CatmullRomBy::create(_duration, reverse);
}

NS_AX_END;
}
5 changes: 3 additions & 2 deletions core/2d/ActionCatmullRom.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
#include "2d/ActionInterval.h"
#include "math/Math.h"

NS_AX_BEGIN;
namespace ax
{

class Node;

Expand Down Expand Up @@ -341,6 +342,6 @@ ccCardinalSplineAt(const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec2& p
// end of actions group
/// @}

NS_AX_END;
}

#endif // __CCACTION_CATMULLROM_H__
5 changes: 3 additions & 2 deletions core/2d/ActionCoroutine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ THE SOFTWARE.

#include "ActionCoroutine.h"

NS_AX_BEGIN
namespace ax
{

//
// Coroutine
Expand Down Expand Up @@ -118,4 +119,4 @@ void ActionCoroutine::step(float dt)
_coroutine.moveNext();
}

NS_AX_END
}
5 changes: 3 additions & 2 deletions core/2d/ActionCoroutine.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ using coroutine_handle = std::experimental::coroutine_handle<_Ty>;
# error This compiler missing c++20 coroutine
#endif

NS_AX_BEGIN
namespace ax
{

/**
* @addtogroup actions
Expand Down Expand Up @@ -153,6 +154,6 @@ class AX_DLL ActionCoroutine : public Action
AX_DISALLOW_COPY_AND_ASSIGN(ActionCoroutine);
};

NS_AX_END
}

#endif // __ACTION_CCCOROUTINE_ACTION_H__
5 changes: 3 additions & 2 deletions core/2d/ActionEase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ THE SOFTWARE.
#include "2d/ActionEase.h"
#include "2d/TweenFunction.h"

NS_AX_BEGIN
namespace ax
{

#ifndef M_PI_X_2
# define M_PI_X_2 (float)M_PI * 2.0f
Expand Down Expand Up @@ -305,4 +306,4 @@ EaseBezierAction* EaseBezierAction::reverse() const
return reverseAction;
}

NS_AX_END
}
5 changes: 3 additions & 2 deletions core/2d/ActionEase.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ THE SOFTWARE.
#include "2d/ActionInterval.h"
#include "2d/TweenFunction.h"

NS_AX_BEGIN
namespace ax
{

/**
* @addtogroup actions
Expand Down Expand Up @@ -552,6 +553,6 @@ class AX_DLL EaseBezierAction : public ax::ActionEase
// end of actions group
/// @}

NS_AX_END
}

#endif // __ACTION_CCEASE_ACTION_H__
5 changes: 3 additions & 2 deletions core/2d/ActionGrid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ THE SOFTWARE.
#include "2d/NodeGrid.h"
#include "base/Director.h"

NS_AX_BEGIN
namespace ax
{
// implementation of GridAction

bool GridAction::initWithDuration(float duration, const Vec2& gridSize)
Expand Down Expand Up @@ -446,4 +447,4 @@ ReuseGrid* ReuseGrid::reverse() const
return this->clone();
}

NS_AX_END
}
5 changes: 3 additions & 2 deletions core/2d/ActionGrid.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ THE SOFTWARE.
#include "2d/ActionInterval.h"
#include "2d/ActionInstant.h"

NS_AX_BEGIN
namespace ax
{

class GridBase;
class NodeGrid;
Expand Down Expand Up @@ -408,6 +409,6 @@ class AX_DLL ReuseGrid : public ActionInstant
// end of actions group
/// @}

NS_AX_END
}

#endif // __ACTION_CCGRID_ACTION_H__
5 changes: 3 additions & 2 deletions core/2d/ActionGrid3D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ THE SOFTWARE.
#include "2d/ActionGrid3D.h"
#include "base/Director.h"

NS_AX_BEGIN
namespace ax
{
// implementation of Waves3D

Waves3D* Waves3D::create(float duration, const Vec2& gridSize, unsigned int waves, float amplitude)
Expand Down Expand Up @@ -736,4 +737,4 @@ void Twirl::update(float time)
}
}

NS_AX_END
}
5 changes: 3 additions & 2 deletions core/2d/ActionGrid3D.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ THE SOFTWARE.

#include "2d/ActionGrid.h"

NS_AX_BEGIN
namespace ax
{

/**
* @addtogroup actions
Expand Down Expand Up @@ -635,6 +636,6 @@ class AX_DLL Twirl : public Grid3DAction
// end of actions group
/// @}

NS_AX_END
}

#endif // __ACTION_CCGRID3D_ACTION_H__
5 changes: 3 additions & 2 deletions core/2d/ActionInstant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
#include "2d/Node.h"
#include "2d/Sprite.h"

NS_AX_BEGIN
namespace ax
{
//
// InstantAction
//
Expand Down Expand Up @@ -399,4 +400,4 @@ CallFuncN* CallFuncN::clone() const
return a;
}

NS_AX_END
}
5 changes: 3 additions & 2 deletions core/2d/ActionInstant.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ THE SOFTWARE.
#include <functional>
#include "2d/Action.h"

NS_AX_BEGIN
namespace ax
{

/**
* @addtogroup actions
Expand Down Expand Up @@ -395,6 +396,6 @@ class AX_DLL CallFuncN : public CallFunc
// end of actions group
/// @}

NS_AX_END
}

#endif //__CCINSTANT_ACTION_H__
5 changes: 3 additions & 2 deletions core/2d/ActionInterval.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ THE SOFTWARE.
#include "platform/StdC.h"
#include "base/ScriptSupport.h"

NS_AX_BEGIN
namespace ax
{

// Extra action for making a Sequence or Spawn when only adding one action to it.
class ExtraAction : public FiniteTimeAction
Expand Down Expand Up @@ -2765,4 +2766,4 @@ ActionFloat* ActionFloat::reverse() const
return ActionFloat::create(_duration, _to, _from, _callback);
}

NS_AX_END
}
5 changes: 3 additions & 2 deletions core/2d/ActionInterval.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ THE SOFTWARE.
#include "base/Protocols.h"
#include "base/Vector.h"

NS_AX_BEGIN
namespace ax
{

class Node;
class SpriteFrame;
Expand Down Expand Up @@ -1617,6 +1618,6 @@ class AX_DLL ActionFloat : public ActionInterval
// end of actions group
/// @}

NS_AX_END
}

#endif //__ACTION_CCINTERVAL_ACTION_H__
5 changes: 3 additions & 2 deletions core/2d/ActionManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ THE SOFTWARE.
#include "base/Scheduler.h"
#include "base/Macros.h"

NS_AX_BEGIN
namespace ax
{
//
// singleton stuff
//
Expand Down Expand Up @@ -453,4 +454,4 @@ void ActionManager::update(float dt)
_currentTarget = nullptr;
}

NS_AX_END
}
5 changes: 3 additions & 2 deletions core/2d/ActionManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ THE SOFTWARE.
#include "base/Vector.h"
#include "base/Object.h"

NS_AX_BEGIN
namespace ax
{

struct ActionHandle
{
Expand Down Expand Up @@ -220,6 +221,6 @@ class AX_DLL ActionManager : public Object
// end of actions group
/// @}

NS_AX_END
}

#endif // __ACTION_CCACTION_MANAGER_H__
5 changes: 3 additions & 2 deletions core/2d/ActionPageTurn3D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ THE SOFTWARE.
#include "2d/Grid.h"
#include "2d/NodeGrid.h"

NS_AX_BEGIN
namespace ax
{

PageTurn3D* PageTurn3D::create(float duration, const Vec2& gridSize)
{
Expand Down Expand Up @@ -130,4 +131,4 @@ void PageTurn3D::update(float time)
}
}

NS_AX_END
}
5 changes: 3 additions & 2 deletions core/2d/ActionPageTurn3D.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ THE SOFTWARE.

#include "2d/ActionGrid3D.h"

NS_AX_BEGIN
namespace ax
{

/**
* @addtogroup actions
Expand Down Expand Up @@ -69,6 +70,6 @@ class AX_DLL PageTurn3D : public Grid3DAction
// end of actions group
/// @}

NS_AX_END
}

#endif // __ACTION_CCPAGETURN3D_ACTION_H__
5 changes: 3 additions & 2 deletions core/2d/ActionProgressTimer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ THE SOFTWARE.
#include "2d/ActionProgressTimer.h"
#include "2d/ProgressTimer.h"

NS_AX_BEGIN
namespace ax
{

#define kProgressTimerCast ProgressTimer*

Expand Down Expand Up @@ -130,4 +131,4 @@ void ProgressFromTo::update(float time)
((kProgressTimerCast)(_target))->setPercentage(_from + (_to - _from) * time);
}

NS_AX_END
}
Loading

0 comments on commit 15268dc

Please sign in to comment.