Skip to content

Commit

Permalink
fixed module lock flag masking
Browse files Browse the repository at this point in the history
  • Loading branch information
Paciente8159 committed Aug 8, 2024
1 parent 3f1a64e commit e79983f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uCNC/src/module.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ extern "C"
#define EVENT_HANDLER_NAME(name) event_##name##_handler
#define EVENT_INVOKE(name, args) EVENT_HANDLER_NAME(name)(args)
#define CREATE_EVENT_LISTENER(name, handler) __attribute__((used)) name##_delegate_event_t name##_delegate_##handler = {&handler, LISTENER_NO_LOCK, NULL}
#define CREATE_EVENT_LISTENER_WITHLOCK(name, handler, lock_flags) __attribute__((used)) name##_delegate_event_t name##_delegate_##handler = {&handler, CLEARFLAG(lock_flags, LISTENER_RUNNING_LOCK), NULL}
#define CREATE_EVENT_LISTENER_WITHLOCK(name, handler, lock_flags) __attribute__((used)) name##_delegate_event_t name##_delegate_##handler = {&handler, (lock_flags & (~LISTENER_RUNNING_LOCK)), NULL}
#define ADD_EVENT_LISTENER(name, handler) \
{ \
extern name##_delegate_event_t name##_delegate_##handler; \
Expand Down

0 comments on commit e79983f

Please sign in to comment.