Remove the USING_NS_AX and NS_AX macros. (#2103)

This commit is contained in:
j-jorge 2024-08-27 13:46:15 +02:00 committed by GitHub
parent 15268dc182
commit b436da431f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
378 changed files with 374 additions and 380 deletions

View File

@ -26,7 +26,7 @@ THE SOFTWARE.
#include "3d/Terrain.h"
USING_NS_AX;
using namespace ax;
#include <stdlib.h>
#include <float.h>
#include <set>

View File

@ -347,10 +347,8 @@ THE SOFTWARE.
/// @{
#ifdef __cplusplus
# define USING_NS_AX using namespace ax
# define NS_AX ::ax
#else
# define USING_NS_AX
# define NS_AX
#endif
namespace ax

View File

@ -35,7 +35,7 @@
#include "base/UTF8.h"
#include "base/Data.h"
USING_NS_AX;
using namespace ax;
// Utility functions (shared with SceneLoader).
/** @script{ignore} */

View File

@ -53,8 +53,6 @@ using Ref = Object;
namespace cocos2d = ax;
#define USING_NS_CC USING_NS_AX
#define CC_SAFE_RELEASE AX_SAFE_RELEASE
#define CC_SAFE_RELEASE_NULL AX_SAFE_RELEASE_NULL
#define CC_SAFE_DELETE AX_SAFE_DELETE

View File

@ -37,7 +37,7 @@
# import <UIKit/UIKit.h>
#endif
USING_NS_AX;
using namespace ax;
#define AX_ALIGN_ANY(x, a) ((((x) + (a) - 1) / (a)) * (a))

View File

@ -33,7 +33,6 @@
# define AX_BREAK_IF(cond) \
if (cond) \
break
# define USING_NS_AX using namespace ax
#endif
// #define AXME_USE_IMFME 1

View File

@ -43,7 +43,7 @@ THE SOFTWARE.
void axmol_android_app_init(JNIEnv* env) __attribute__((weak));
USING_NS_AX;
using namespace ax;
extern "C" {

View File

@ -30,7 +30,7 @@
#define TG3_GRAVITY_EARTH (9.80665f)
USING_NS_AX;
using namespace ax;
extern "C" {
JNIEXPORT void JNICALL Java_org_axmol_lib_AxmolAccelerometer_onSensorChanged(JNIEnv*,

View File

@ -44,7 +44,7 @@ static void* s_ctx = nullptr;
static std::string g_apkPath;
USING_NS_AX;
using namespace ax;
using namespace std;
extern "C" {

View File

@ -34,7 +34,7 @@
#include "base/UTF8.h"
USING_NS_AX;
using namespace ax;
extern "C" {

View File

@ -33,7 +33,7 @@ THE SOFTWARE.
static const char* className = "org.axmol.lib.BitmapHelper";
USING_NS_AX;
using namespace ax;
int getFontSizeAccordingHeightJni(int height)
{

View File

@ -30,7 +30,7 @@ THE SOFTWARE.
#include <android/log.h>
#include <jni.h>
USING_NS_AX;
using namespace ax;
extern "C" {
JNIEXPORT void JNICALL

View File

@ -4,7 +4,7 @@
//
#include "ui/LayoutHelper.h"
USING_NS_AX;
using namespace ax;
Vec2 LayoutHelper::s_designSize;
float LayoutHelper::s_adjustedScale = 1.0f;

View File

@ -33,7 +33,7 @@
# define center_coord(__SZ__, __sz__, __achor__) (((__SZ__) - (__sz__) + 2 * (__sz__) * (__achor__)) * 0.5f)
USING_NS_AX;
using namespace ax;
// inline Vec2 operator*(const Vec2& left, const ax::Vec2& right)
//{

View File

@ -42,7 +42,7 @@
# include "yasio/byte_buffer.hpp"
//-----------------------------------------------------------------------------------------------------------
USING_NS_AX;
using namespace ax;
//-----------------------------------------------------------------------------------------------------------

View File

@ -45,7 +45,7 @@
#include "platform/SAXParser.h"
USING_NS_AX;
using namespace ax;
using namespace ax::ui;
class UrlTouchListenerComponent : public Component

View File

@ -31,7 +31,7 @@
namespace webview_common
{
USING_NS_AX;
using namespace ax;
using namespace rapidjson;
inline std::string htmlFromUri(std::string_view s)

View File

@ -58,7 +58,7 @@
# include "ntcvt/ntcvt.hpp"
USING_NS_AX;
using namespace ax;
using namespace webview_common;
using msg_cb_t = std::function<void(std::string_view)>;

View File

@ -2399,7 +2399,6 @@ PREDEFINED = "AX_PROPERTY_READONLY(varType, varName, funName)=protec
"NS_AX_MATH_END=}" \
"NS_AX_BACKEND_BEGIN=namespace ax { namespace backend{" \
"NS_AX_BACKEND_BEGIN=}}" \
"USING_NS_AX=using namespace ax" \
"USING_NS_AX_MATH=using namespace ax" \
"NS_AX_EXT_BEGIN=namespace ax { namespace extension {" \
"NS_AX_EXT_END=}}" \

View File

@ -16,7 +16,7 @@ to use those with specific font.
## How to use
```cpp
#include "ImGui/ImGuiPresenter.h"
USING_NS_AX;
using namespace ax;
USING_NS_AX_EXT;
class GameScene : public Scene {

View File

@ -83,7 +83,7 @@
#include "renderer/backend/opengl/OpenGLState.h"
#endif
USING_NS_AX;
using namespace ax;
using namespace backend;
// Clang warnings with -Weverything

View File

@ -9,7 +9,7 @@
#include <imgui_internal.h>
#include "base/IMEDelegate.h"
USING_NS_AX;
using namespace ax;
using namespace backend;
// Clang warnings with -Weverything

View File

@ -36,7 +36,7 @@
#include "renderer/backend/Texture.h"
USING_NS_AX;
using namespace ax;
namespace Live2D { namespace Cubism { namespace Framework { namespace Rendering {

View File

@ -40,7 +40,7 @@
#include "renderer/backend/RenderTarget.h"
USING_NS_AX;
using namespace ax;
//------------ LIVE2D NAMESPACE ------------
namespace Live2D { namespace Cubism { namespace Framework { namespace Rendering {

View File

@ -12,7 +12,7 @@
#include <float.h>
#include "renderer/backend/DriverBase.h"
USING_NS_AX;
using namespace ax;
#ifdef CSM_TARGET_WIN_GL
#include <Windows.h>

View File

@ -41,7 +41,7 @@
#include <OpenGL/gl.h>
#endif
USING_NS_AX;
using namespace ax;
//------------ LIVE2D NAMESPACE ------------
namespace Live2D { namespace Cubism { namespace Framework { namespace Rendering {

View File

@ -42,7 +42,7 @@
NS_AX_EXT_BEGIN
using namespace std;
USING_NS_AX;
using namespace ax;
using namespace ax::network;
#define KEY_OF_VERSION "current-version-code"

View File

@ -25,7 +25,7 @@ THE SOFTWARE.
#include "ActionFrame.h"
#include "2d/ActionEase.h"
USING_NS_AX;
using namespace ax;
namespace cocostudio
{

View File

@ -25,7 +25,7 @@ THE SOFTWARE.
#include "ActionManagerEx.h"
#include "CocoLoader.h"
USING_NS_AX;
using namespace ax;
namespace cocostudio
{

View File

@ -31,7 +31,7 @@ THE SOFTWARE.
#include "base/Utils.h"
#include "ActionManagerEx.h"
USING_NS_AX;
using namespace ax;
using namespace ui;
namespace cocostudio

View File

@ -30,7 +30,7 @@ THE SOFTWARE.
#include "2d/ActionInstant.h"
#include "base/Utils.h"
USING_NS_AX;
using namespace ax;
namespace cocostudio
{

View File

@ -26,7 +26,7 @@ THE SOFTWARE.
#include "cocostudio/ComExtensionData.h"
USING_NS_AX;
using namespace ax;
NS_TIMELINE_BEGIN

View File

@ -43,7 +43,7 @@ THE SOFTWARE.
#include <fstream>
USING_NS_AX;
using namespace ax;
using namespace flatbuffers;
namespace cocostudio

View File

@ -24,7 +24,7 @@
#include "cocostudio/ActionTimeline/ActionTimelineNode.h"
USING_NS_AX;
using namespace ax;
NS_TIMELINE_BEGIN

View File

@ -30,7 +30,7 @@ THE SOFTWARE.
#include <exception>
#include <iostream>
USING_NS_AX;
using namespace ax;
NS_TIMELINE_BEGIN

View File

@ -23,7 +23,7 @@ THE SOFTWARE.
****************************************************************************/
#include "SkinNode.h"
USING_NS_AX;
using namespace ax;
NS_TIMELINE_BEGIN

View File

@ -25,7 +25,7 @@ THE SOFTWARE.
#include "TimeLine.h"
#include "ActionTimeline.h"
USING_NS_AX;
using namespace ax;
NS_TIMELINE_BEGIN

View File

@ -40,7 +40,7 @@ THE SOFTWARE.
# include "chipmunk/chipmunk.h"
#endif
USING_NS_AX;
using namespace ax;
namespace cocostudio
{

View File

@ -28,7 +28,7 @@ THE SOFTWARE.
#include "ArmatureDefine.h"
#include "Datas.h"
USING_NS_AX;
using namespace ax;
namespace cocostudio
{

View File

@ -29,7 +29,7 @@ THE SOFTWARE.
#include "DataReaderHelper.h"
#include "SpriteFrameCacheHelper.h"
USING_NS_AX;
using namespace ax;
namespace cocostudio
{

View File

@ -29,7 +29,7 @@ THE SOFTWARE.
#include "renderer/GroupCommand.h"
#include "base/Director.h"
USING_NS_AX;
using namespace ax;
namespace cocostudio
{
BatchNode* BatchNode::create()

View File

@ -29,7 +29,7 @@ THE SOFTWARE.
#include "TransformHelp.h"
#include "DisplayManager.h"
USING_NS_AX;
using namespace ax;
namespace cocostudio
{

View File

@ -26,7 +26,7 @@ THE SOFTWARE.
#include "Bone.h"
#include "TransformHelp.h"
USING_NS_AX;
using namespace ax;
namespace cocostudio
{

View File

@ -25,7 +25,7 @@ THE SOFTWARE.
#include "ComAttribute.h"
#include "platform/FileUtils.h"
USING_NS_AX;
using namespace ax;
namespace cocostudio
{

View File

@ -30,7 +30,7 @@ THE SOFTWARE.
#include "2d/ParticleSystemQuad.h"
#include "2d/SpriteFrameCache.h"
USING_NS_AX;
using namespace ax;
namespace cocostudio
{

View File

@ -37,7 +37,7 @@ THE SOFTWARE.
#include "CocoLoader.h"
USING_NS_AX;
using namespace ax;
static const char* VERSION = "version";
static const float VERSION_2_0 = 2.0f;

View File

@ -25,7 +25,7 @@ THE SOFTWARE.
#include "Datas.h"
#include "TransformHelp.h"
USING_NS_AX;
using namespace ax;
namespace cocostudio
{

View File

@ -25,7 +25,7 @@ THE SOFTWARE.
#include "DecorativeDisplay.h"
#include "2d/Node.h"
USING_NS_AX;
using namespace ax;
namespace cocostudio
{

View File

@ -31,7 +31,7 @@ THE SOFTWARE.
#include "2d/ParticleSystemQuad.h"
USING_NS_AX;
using namespace ax;
namespace cocostudio
{

View File

@ -29,7 +29,7 @@ THE SOFTWARE.
#include "2d/ParticleSystemQuad.h"
USING_NS_AX;
using namespace ax;
namespace cocostudio
{

View File

@ -62,7 +62,7 @@
#include "flatbuffers/flatbuffers.h"
USING_NS_AX;
using namespace ax;
using namespace ax::ui;
using namespace cocostudio;
using namespace cocostudio::timeline;

View File

@ -30,7 +30,7 @@ THE SOFTWARE.
#include "base/EventListenerKeyboard.h"
#include "base/EventDispatcher.h"
USING_NS_AX;
using namespace ax;
namespace cocostudio
{

View File

@ -4,7 +4,7 @@
#include "CSLanguageDataBinary_generated.h"
using namespace cocostudio;
USING_NS_AX;
using namespace ax;
static JsonLocalizationManager* _sharedJsonLocalizationManager = nullptr;

View File

@ -24,7 +24,7 @@ THE SOFTWARE.
#include "ProcessBase.h"
USING_NS_AX;
using namespace ax;
namespace cocostudio
{

View File

@ -49,7 +49,7 @@ THE SOFTWARE.
#include "CocoLoader.h"
#include "pugixml/pugixml.hpp"
USING_NS_AX;
using namespace ax;
using namespace ax::ui;
namespace cocostudio

View File

@ -29,7 +29,7 @@ THE SOFTWARE.
#include "base/Utils.h"
#include "platform/FileUtils.h"
USING_NS_AX;
using namespace ax;
using namespace ui;
namespace cocostudio

View File

@ -32,7 +32,7 @@ THE SOFTWARE.
#include "TransformHelp.h"
#include "Armature.h"
USING_NS_AX;
using namespace ax;
namespace cocostudio
{

View File

@ -27,7 +27,7 @@ THE SOFTWARE.
#include "2d/SpriteFrame.h"
#include "2d/SpriteFrameCache.h"
USING_NS_AX;
using namespace ax;
namespace cocostudio
{

View File

@ -27,7 +27,7 @@ THE SOFTWARE.
#include "base/Director.h"
#include "base/EventDispatcher.h"
USING_NS_AX;
using namespace ax;
namespace cocostudio
{

View File

@ -26,7 +26,7 @@ THE SOFTWARE.
#include "TriggerBase.h"
#include "base/EventCustom.h"
USING_NS_AX;
using namespace ax;
using namespace cocostudio;
void sendEvent(unsigned int event)

View File

@ -30,7 +30,7 @@ THE SOFTWARE.
#include "base/Utils.h"
#include "base/EventCustom.h"
USING_NS_AX;
using namespace ax;
namespace cocostudio
{

View File

@ -24,7 +24,7 @@ THE SOFTWARE.
#include "TriggerObj.h"
#include "base/EventListenerCustom.h"
USING_NS_AX;
using namespace ax;
namespace cocostudio
{

View File

@ -11,7 +11,7 @@
# include "DragonBones/CCDragonBonesHeaders.h"
#endif
USING_NS_AX;
using namespace ax;
using namespace cocostudio;
using namespace flatbuffers;

View File

@ -13,7 +13,7 @@
#include "flatbuffers/flatbuffers.h"
USING_NS_AX;
using namespace ax;
using namespace ui;
using namespace flatbuffers;

View File

@ -11,7 +11,7 @@
#include "flatbuffers/flatbuffers.h"
USING_NS_AX;
using namespace ax;
using namespace ui;
using namespace flatbuffers;

View File

@ -30,7 +30,7 @@
#include "flatbuffers/flatbuffers.h"
USING_NS_AX;
using namespace ax;
using namespace flatbuffers;
namespace cocostudio

View File

@ -35,7 +35,7 @@
#include "flatbuffers/flatbuffers.h"
USING_NS_AX;
using namespace ax;
using namespace flatbuffers;
namespace cocostudio

View File

@ -35,7 +35,7 @@
#include "flatbuffers/flatbuffers.h"
USING_NS_AX;
using namespace ax;
using namespace flatbuffers;
namespace cocostudio

View File

@ -12,7 +12,7 @@
#include "flatbuffers/flatbuffers.h"
USING_NS_AX;
using namespace ax;
using namespace ui;
using namespace flatbuffers;

View File

@ -15,7 +15,7 @@
#include "flatbuffers/flatbuffers.h"
USING_NS_AX;
using namespace ax;
using namespace ui;
using namespace flatbuffers;

View File

@ -33,7 +33,7 @@
#include "flatbuffers/flatbuffers.h"
USING_NS_AX;
using namespace ax;
using namespace flatbuffers;
namespace cocostudio

View File

@ -11,7 +11,7 @@
#include "flatbuffers/flatbuffers.h"
USING_NS_AX;
using namespace ax;
using namespace ui;
using namespace flatbuffers;

View File

@ -12,7 +12,7 @@
#include "flatbuffers/flatbuffers.h"
USING_NS_AX;
using namespace ax;
using namespace ui;
using namespace flatbuffers;

View File

@ -38,7 +38,7 @@
#include "flatbuffers/flatbuffers.h"
USING_NS_AX;
using namespace ax;
using namespace flatbuffers;
namespace cocostudio

View File

@ -32,7 +32,7 @@
#include "flatbuffers/flatbuffers.h"
USING_NS_AX;
using namespace ax;
using namespace flatbuffers;
namespace cocostudio

View File

@ -31,7 +31,7 @@
#include "flatbuffers/flatbuffers.h"
#include "ui/UILayoutComponent.h"
USING_NS_AX;
using namespace ax;
using namespace flatbuffers;
namespace cocostudio

View File

@ -12,7 +12,7 @@
#include "flatbuffers/flatbuffers.h"
USING_NS_AX;
using namespace ax;
using namespace ui;
using namespace flatbuffers;

View File

@ -34,7 +34,7 @@
#include "Particle3D/PU/PUParticleSystem3D.h"
USING_NS_AX;
using namespace ax;
using namespace flatbuffers;
namespace cocostudio

View File

@ -33,7 +33,7 @@
#include "flatbuffers/flatbuffers.h"
USING_NS_AX;
using namespace ax;
using namespace flatbuffers;
namespace cocostudio

View File

@ -29,7 +29,7 @@
#include "flatbuffers/flatbuffers.h"
USING_NS_AX;
using namespace ax;
using namespace flatbuffers;
namespace cocostudio

View File

@ -12,7 +12,7 @@
#include "flatbuffers/flatbuffers.h"
USING_NS_AX;
using namespace ax;
using namespace ui;
using namespace flatbuffers;

View File

@ -11,7 +11,7 @@
#include "flatbuffers/flatbuffers.h"
USING_NS_AX;
using namespace ax;
using namespace ui;
using namespace flatbuffers;

View File

@ -11,7 +11,7 @@
#include "flatbuffers/flatbuffers.h"
USING_NS_AX;
using namespace ax;
using namespace ui;
using namespace flatbuffers;

View File

@ -11,7 +11,7 @@
#include "flatbuffers/flatbuffers.h"
USING_NS_AX;
using namespace ax;
using namespace ui;
using namespace flatbuffers;

View File

@ -30,7 +30,7 @@
#include "flatbuffers/flatbuffers.h"
USING_NS_AX;
using namespace ax;
using namespace flatbuffers;
namespace cocostudio

View File

@ -31,7 +31,7 @@ THE SOFTWARE.
#include "cocostudio/ActionTimeline/BoneNode.h"
#include "base/Utils.h"
USING_NS_AX;
using namespace ax;
USING_NS_TIMELINE;
using namespace cocostudio;
using namespace flatbuffers;

View File

@ -29,7 +29,7 @@ THE SOFTWARE.
#include "SkeletonNodeReader.h"
#include "cocostudio/ActionTimeline/SkeletonNode.h"
USING_NS_AX;
using namespace ax;
USING_NS_TIMELINE;
using namespace cocostudio;
using namespace flatbuffers;

View File

@ -12,7 +12,7 @@
#include "flatbuffers/flatbuffers.h"
USING_NS_AX;
using namespace ax;
using namespace ui;
using namespace flatbuffers;

View File

@ -37,7 +37,7 @@
# include "flatbuffers/flatbuffers.h"
USING_NS_AX;
using namespace ax;
using namespace flatbuffers;
namespace cocostudio

View File

@ -40,7 +40,7 @@
#include "renderer/backend/ProgramManager.h"
#include "renderer/backend/ProgramState.h"
USING_NS_AX;
using namespace ax;
using namespace flatbuffers;
namespace cocostudio

View File

@ -32,7 +32,7 @@
#include "platform/FileUtils.h"
#include "2d/SpriteFrameCache.h"
USING_NS_AX;
using namespace ax;
using namespace cocostudio;
using namespace flatbuffers;
using namespace ax::ui;

View File

@ -11,7 +11,7 @@
#include "flatbuffers/flatbuffers.h"
USING_NS_AX;
using namespace ax;
using namespace ui;
using namespace flatbuffers;

View File

@ -11,7 +11,7 @@
#include "flatbuffers/flatbuffers.h"
USING_NS_AX;
using namespace ax;
using namespace ui;
using namespace flatbuffers;

View File

@ -12,7 +12,7 @@
#include "flatbuffers/flatbuffers.h"
USING_NS_AX;
using namespace ax;
using namespace ui;
using namespace flatbuffers;

View File

@ -10,7 +10,7 @@
#include "flatbuffers/flatbuffers.h"
USING_NS_AX;
using namespace ax;
using namespace ui;
using namespace flatbuffers;

View File

@ -12,7 +12,7 @@
#include "flatbuffers/flatbuffers.h"
USING_NS_AX;
using namespace ax;
using namespace ui;
using namespace flatbuffers;

View File

@ -35,7 +35,7 @@
#include "flatbuffers/flatbuffers.h"
USING_NS_AX;
using namespace ax;
using namespace flatbuffers;
namespace cocostudio

View File

@ -14,7 +14,7 @@
#include "base/Utils.h"
#include "base/Director.h"
USING_NS_AX;
using namespace ax;
using namespace ui;
using namespace flatbuffers;
/**/

View File

@ -5,7 +5,7 @@
#include "utils/ToolSet.h"
NS_FGUI_BEGIN
USING_NS_AX;
using namespace ax;
GController::GController() : changing(false),
autoRadioGroupDepth(false),

View File

@ -3,7 +3,7 @@
#include "GRoot.h"
NS_FGUI_BEGIN
USING_NS_AX;
using namespace ax;
DragDropManager* DragDropManager::_inst = nullptr;

Some files were not shown because too many files have changed in this diff Show More