| 123456789101112131415161718192021222324252627 |
- #include "Device.h"
- #include "LuaEnvironment.h"
- #include "LuaStack.h"
- namespace crown
- {
- extern "C"
- {
- //-----------------------------------------------------------------------------
- int32_t device_stop(lua_State* L)
- {
- device()->stop();
- return 0;
- }
- } // extern "C"
- //-----------------------------------------------------------------------------
- void load_device(LuaEnvironment& env)
- {
- env.load_module_function("Device", "stop", device_stop);
- }
- } // namespace crown
|