Skip to content

Commit 928934d

Browse files
AX_CORE_PROFILE fix usage of "ifndef AX_CORE_PROFILE" (#2910)
1 parent dfd5645 commit 928934d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

core/platform/linux/Application-linux.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,13 @@ Application* Application::getInstance()
132132
return sm_pSharedApplication;
133133
}
134134

135+
#ifndef AX_CORE_PROFILE
135136
// @deprecated Use getInstance() instead
136137
Application* Application::sharedApplication()
137138
{
138139
return Application::getInstance();
139140
}
141+
#endif
140142

141143
const char* Application::getCurrentLanguageCode()
142144
{

core/platform/wasm/Application-wasm.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ void Application::setAnimationInterval(float interval)
211211
s_animationInterval = static_cast<int64_t>(interval * NANOSECONDSPERSECOND);
212212
}
213213

214+
#ifndef AX_CORE_PROFILE
214215
void Application::setResourceRootPath(const std::string& rootResDir)
215216
{
216217
_resourceRootPath = rootResDir;
@@ -228,6 +229,7 @@ const std::string& Application::getResourceRootPath()
228229
{
229230
return _resourceRootPath;
230231
}
232+
#endif
231233

232234
Application::Platform Application::getTargetPlatform()
233235
{
@@ -255,11 +257,13 @@ Application* Application::getInstance()
255257
return sm_pSharedApplication;
256258
}
257259

260+
#ifndef AX_CORE_PROFILE
258261
// @deprecated Use getInstance() instead
259262
Application* Application::sharedApplication()
260263
{
261264
return Application::getInstance();
262265
}
266+
#endif
263267

264268
const char* Application::getCurrentLanguageCode()
265269
{

0 commit comments

Comments
 (0)