Skip to content

Commit

Permalink
Improving comments and fixing double init
Browse files Browse the repository at this point in the history
  • Loading branch information
yancouto committed Jan 12, 2019
1 parent 8267fcc commit e29fc27
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/core.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

namespace luasteam {

// Adds functions SteamAPI_*
void add_core(lua_State *L);

} // namespace luasteam
Expand Down
1 change: 1 addition & 0 deletions src/friends.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

namespace luasteam {

// Adds functions from ISteamFriends
void add_friends(lua_State *L);

void init_friends(lua_State *L);
Expand Down
6 changes: 1 addition & 5 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,8 @@
#include "friends.hpp"
#include "user_stats.hpp"

// ====================================
// ======= End of API functions =======
// ====================================

// Creates and returns a table with all functions
EXTERN int luaopen_luasteam(lua_State *L) {
luasteam::init_common(L);
lua_createtable(L, 0, 5);
luasteam::add_core(L);
luasteam::add_user_stats(L);
Expand Down
1 change: 1 addition & 0 deletions src/user_stats.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

namespace luasteam {

// Adds functions from ISteamUserStats
void add_user_stats(lua_State *L);

void init_user_stats(lua_State *L);
Expand Down

0 comments on commit e29fc27

Please sign in to comment.