Skip to content

Commit

Permalink
Update lua_service.h
Browse files Browse the repository at this point in the history
  • Loading branch information
sniper00 committed Dec 29, 2023
1 parent 96b26cd commit 990ddf1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion moon-src/services/lua_service.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ class lua_service final : public moon::service
static void* lalloc(void* ud, void* ptr, size_t osize, size_t nsize);

public:
std::atomic_int trap = 0;
lua_State* activeL = nullptr;

static lua_service* get(lua_State* L);

static int set_callback(lua_State* L);
Expand All @@ -31,4 +34,4 @@ class lua_service final : public moon::service
size_t mem_report = 8 * 1024 * 1024;
callback_context* cb_ctx = nullptr;
std::unique_ptr<lua_State, moon::state_deleter> lua_;
};
};

0 comments on commit 990ddf1

Please sign in to comment.