diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-03-29 17:29:23 +0100 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-03-29 17:29:23 +0100 |
commit | 53d327679364093e8e1b4c17075633670bea9c83 (patch) | |
tree | c114ec2bec00c7f1cbd1ad4db1439d0b5089c25f /src/deep.h | |
parent | 17576c3f6762b5ba0359ddec04f5cd8916d3e2f8 (diff) | |
download | lanes-53d327679364093e8e1b4c17075633670bea9c83.tar.gz lanes-53d327679364093e8e1b4c17075633670bea9c83.tar.bz2 lanes-53d327679364093e8e1b4c17075633670bea9c83.zip |
C++ migration: all enums are enum class
Diffstat (limited to 'src/deep.h')
-rw-r--r-- | src/deep.h | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -21,19 +21,19 @@ extern "C" { | |||
21 | // forwards | 21 | // forwards |
22 | struct Universe; | 22 | struct Universe; |
23 | 23 | ||
24 | enum LookupMode | 24 | enum class LookupMode |
25 | { | 25 | { |
26 | eLM_LaneBody, // send the lane body directly from the source to the destination lane | 26 | LaneBody, // send the lane body directly from the source to the destination lane |
27 | eLM_ToKeeper, // send a function from a lane to a keeper state | 27 | ToKeeper, // send a function from a lane to a keeper state |
28 | eLM_FromKeeper // send a function from a keeper state to a lane | 28 | FromKeeper // send a function from a keeper state to a lane |
29 | }; | 29 | }; |
30 | 30 | ||
31 | enum DeepOp | 31 | enum class DeepOp |
32 | { | 32 | { |
33 | eDO_new, | 33 | New, |
34 | eDO_delete, | 34 | Delete, |
35 | eDO_metatable, | 35 | Metatable, |
36 | eDO_module, | 36 | Module, |
37 | }; | 37 | }; |
38 | 38 | ||
39 | using luaG_IdFunction = void*(*)( lua_State* L, DeepOp op_); | 39 | using luaG_IdFunction = void*(*)( lua_State* L, DeepOp op_); |