Properly export all lua-facing functions and use those for initialization (love.cpp no longer explicitly mentions implementations)

This commit is contained in:
Bart van Strien
2011-12-24 01:10:40 +01:00
parent e0dcf55703
commit c707a4ca45
85 changed files with 119 additions and 114 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ namespace sound
{ 0, 0 }
};
int luaopen_decoder(lua_State * L)
extern "C" int luaopen_decoder(lua_State * L)
{
return luax_register_type(L, "Decoder", functions);
}
+1 -1
View File
@@ -33,7 +33,7 @@ namespace sound
int w_Decoder_getChannels(lua_State * L);
int w_Decoder_getBits(lua_State * L);
int w_Decoder_getSampleRate(lua_State * L);
int luaopen_decoder(lua_State * L);
extern "C" int luaopen_decoder(lua_State * L);
} // sound
} // love
+1 -1
View File
@@ -113,7 +113,7 @@ namespace sound
0
};
int luaopen_love_sound(lua_State * L)
extern "C" int luaopen_love_sound(lua_State * L)
{
if (instance == 0)
{
+1 -1
View File
@@ -83,7 +83,7 @@ namespace sound
{ 0, 0 }
};
int luaopen_sounddata(lua_State * L)
extern "C" int luaopen_sounddata(lua_State * L)
{
return luax_register_type(L, "SoundData", functions);
}
+1 -1
View File
@@ -37,7 +37,7 @@ namespace sound
int w_getSampleRate(lua_State * L);
int w_setSample(lua_State * L);
int w_getSample(lua_State * L);
int luaopen_sounddata(lua_State * L);
extern "C" int luaopen_sounddata(lua_State * L);
} // sound
} // love