mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
Properly export all lua-facing functions and use those for initialization (love.cpp no longer explicitly mentions implementations)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user