Skip to content

Commit

Permalink
Made a couple of functions static
Browse files Browse the repository at this point in the history
  • Loading branch information
britzl committed Aug 24, 2020
1 parent 0cd1926 commit d553fba
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions siwa/src/siwa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ char* Siwa_GetUserId()
return g_SiwaData.m_userID;
}

void Siwa_ResetCallbackData()
static void Siwa_ResetCallbackData()
{
free(g_SiwaCallbackData.m_userID);
g_SiwaCallbackData.m_userID = 0;
Expand Down Expand Up @@ -79,7 +79,7 @@ void Siwa_QueueAuthFailureCallback(const char* message)
}


void Siwa_TriggerCallback()
static void Siwa_TriggerCallback()
{
lua_State* L = dmScript::GetCallbackLuaContext(g_SiwaData.m_callback);
DM_LUA_STACK_CHECK(L, 0);
Expand Down Expand Up @@ -153,22 +153,22 @@ void Siwa_TriggerCallback()
}


void Siwa_SetupCallback(lua_State* L, int index)
static void Siwa_SetupCallback(lua_State* L, int index)
{
if (g_SiwaData.m_callback) {
dmScript::DestroyCallback(g_SiwaData.m_callback);
}
g_SiwaData.m_callback = dmScript::CreateCallback(L, index);
}

void Siwa_CleanupCallback() {
static void Siwa_CleanupCallback() {
if (g_SiwaData.m_callback) {
dmScript::DestroyCallback(g_SiwaData.m_callback);
g_SiwaData.m_callback = 0;
}
}

int Siwa_GetCredentialState(lua_State* L){
static int Siwa_GetCredentialState(lua_State* L){
DM_LUA_STACK_CHECK(L, 1);

if (!Siwa_PlatformIsSupported()) {
Expand Down Expand Up @@ -196,7 +196,7 @@ int Siwa_GetCredentialState(lua_State* L){
return 1;
}

int Siwa_AuthenticateWithApple(lua_State* L) {
static int Siwa_AuthenticateWithApple(lua_State* L) {
DM_LUA_STACK_CHECK(L, 1);

if (!Siwa_PlatformIsSupported()) {
Expand All @@ -220,7 +220,7 @@ int Siwa_AuthenticateWithApple(lua_State* L) {
return 1;
}

int Siwa_IsSupported(lua_State* L) {
static int Siwa_IsSupported(lua_State* L) {
DM_LUA_STACK_CHECK(L, 1);
lua_pushboolean(L, Siwa_PlatformIsSupported());
return 1;
Expand Down

0 comments on commit d553fba

Please sign in to comment.