Skip to content

Commit

Permalink
add MemoryReg (start_session() finish_session() discard_session() for…
Browse files Browse the repository at this point in the history
… user_dict update (hchunhui#333)

在 OnCommit() 線外操作 user_dict 須要  呼叫 start_session() finish_session()
  • Loading branch information
shewer authored May 3, 2024
1 parent cb1152c commit 43229d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/types.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1956,6 +1956,9 @@ namespace MemoryReg {
};

static const luaL_Reg methods[] = {
{"start_session", WRAPMEM(T, StartSession)},
{"finish_session", WRAPMEM(T, FinishSession)},
{"discard_session", WRAPMEM(T, DiscardSession)},
{ "dict_lookup", WRAPMEM(T::dictLookup)}, // bool
{ "user_lookup", WRAPMEM(T::userLookup)}, // bool
{ "dictiter_lookup", WRAPMEM(T::dictiterLookup)}, // iter
Expand Down

0 comments on commit 43229d7

Please sign in to comment.