mirror of
https://github.com/whoahq/whoa.git
synced 2026-03-18 05:31:07 +03:00
chore(ui): use anonymous namespace consistently for script bindings
This commit is contained in:
parent
f19894ef12
commit
df177a40b0
@ -2,6 +2,8 @@
|
|||||||
#include "ui/FrameScript.hpp"
|
#include "ui/FrameScript.hpp"
|
||||||
#include "util/Unimplemented.hpp"
|
#include "util/Unimplemented.hpp"
|
||||||
|
|
||||||
|
namespace {
|
||||||
|
|
||||||
int32_t Script_GetGMTicket(lua_State* L) {
|
int32_t Script_GetGMTicket(lua_State* L) {
|
||||||
WHOA_UNIMPLEMENTED(0);
|
WHOA_UNIMPLEMENTED(0);
|
||||||
}
|
}
|
||||||
@ -62,6 +64,8 @@ int32_t Script_RegisterStaticConstants(lua_State* L) {
|
|||||||
WHOA_UNIMPLEMENTED(0);
|
WHOA_UNIMPLEMENTED(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
static FrameScript_Method s_ScriptFunctions[] = {
|
static FrameScript_Method s_ScriptFunctions[] = {
|
||||||
{ "GetGMTicket", &Script_GetGMTicket },
|
{ "GetGMTicket", &Script_GetGMTicket },
|
||||||
{ "NewGMTicket", &Script_NewGMTicket },
|
{ "NewGMTicket", &Script_NewGMTicket },
|
||||||
|
|||||||
@ -8,6 +8,7 @@
|
|||||||
#include "util/Unimplemented.hpp"
|
#include "util/Unimplemented.hpp"
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
int32_t Script_FrameXML_Debug(lua_State* L) {
|
int32_t Script_FrameXML_Debug(lua_State* L) {
|
||||||
WHOA_UNIMPLEMENTED(0);
|
WHOA_UNIMPLEMENTED(0);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,6 +3,8 @@
|
|||||||
#include "ui/ScriptFunctionsSystem.hpp"
|
#include "ui/ScriptFunctionsSystem.hpp"
|
||||||
#include "util/Unimplemented.hpp"
|
#include "util/Unimplemented.hpp"
|
||||||
|
|
||||||
|
namespace {
|
||||||
|
|
||||||
int32_t Script_UnitExists(lua_State* L) {
|
int32_t Script_UnitExists(lua_State* L) {
|
||||||
WHOA_UNIMPLEMENTED(0);
|
WHOA_UNIMPLEMENTED(0);
|
||||||
}
|
}
|
||||||
@ -679,6 +681,8 @@ int32_t Script_FillLocalizedClassList(lua_State* L) {
|
|||||||
WHOA_UNIMPLEMENTED(0);
|
WHOA_UNIMPLEMENTED(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
static FrameScript_Method s_UnitFunctions[] = {
|
static FrameScript_Method s_UnitFunctions[] = {
|
||||||
{ "UnitExists", &Script_UnitExists },
|
{ "UnitExists", &Script_UnitExists },
|
||||||
{ "UnitIsVisible", &Script_UnitIsVisible },
|
{ "UnitIsVisible", &Script_UnitIsVisible },
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user