diff options
| author | Rémi Verschelde | 2017-03-05 16:44:50 +0100 |
|---|---|---|
| committer | Rémi Verschelde | 2017-03-05 16:44:50 +0100 |
| commit | 5dbf1809c6e3e905b94b8764e99491e608122261 (patch) | |
| tree | 5e5a5360db15d86d59ec8c6e4f7eb511388c5a9a /core/message_queue.h | |
| parent | 45438e9918d421b244bfd7776a30e67dc7f2d3e3 (diff) | |
| download | godot-5dbf180.tar.gz godot-5dbf180.tar.zst godot-5dbf180.zip | |
A Whole New World (clang-format edition)
I can show you the code
Pretty, with proper whitespace
Tell me, coder, now when did
You last write readable code?
I can open your eyes
Make you see your bad indent
Force you to respect the style
The core devs agreed upon
A whole new world
A new fantastic code format
A de facto standard
With some sugar
Enforced with clang-format
A whole new world
A dazzling style we all dreamed of
And when we read it through
It's crystal clear
That now we're in a whole new world of code
Diffstat (limited to 'core/message_queue.h')
| -rw-r--r-- | core/message_queue.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/core/message_queue.h b/core/message_queue.h index 1b1a20ba9..e04530f24 100644 --- a/core/message_queue.h +++ b/core/message_queue.h @@ -38,7 +38,7 @@ class MessageQueue { enum { - DEFAULT_QUEUE_SIZE_KB=1024 + DEFAULT_QUEUE_SIZE_KB = 1024 }; Mutex *mutex; @@ -47,8 +47,8 @@ class MessageQueue { TYPE_CALL, TYPE_NOTIFICATION, TYPE_SET, - FLAG_SHOW_ERROR=1<<14, - FLAG_MASK=FLAG_SHOW_ERROR-1 + FLAG_SHOW_ERROR = 1 << 14, + FLAG_MASK = FLAG_SHOW_ERROR - 1 }; @@ -68,21 +68,21 @@ class MessageQueue { uint32_t buffer_max_used; uint32_t buffer_size; - void _call_function(Object* p_target,const StringName& p_func,const Variant *p_args,int p_argcount,bool p_show_error); + void _call_function(Object *p_target, const StringName &p_func, const Variant *p_args, int p_argcount, bool p_show_error); static MessageQueue *singleton; -public: +public: static MessageQueue *get_singleton(); - Error push_call(ObjectID p_id,const StringName& p_method,const Variant** p_args,int p_argcount,bool p_show_error=false); - Error push_call(ObjectID p_id, const StringName& p_method, VARIANT_ARG_LIST); + Error push_call(ObjectID p_id, const StringName &p_method, const Variant **p_args, int p_argcount, bool p_show_error = false); + Error push_call(ObjectID p_id, const StringName &p_method, VARIANT_ARG_LIST); Error push_notification(ObjectID p_id, int p_notification); - Error push_set(ObjectID p_id, const StringName& p_prop, const Variant& p_value); + Error push_set(ObjectID p_id, const StringName &p_prop, const Variant &p_value); - Error push_call(Object *p_object, const StringName& p_method, VARIANT_ARG_LIST); + Error push_call(Object *p_object, const StringName &p_method, VARIANT_ARG_LIST); Error push_notification(Object *p_object, int p_notification); - Error push_set(Object *p_object, const StringName& p_prop, const Variant& p_value); + Error push_set(Object *p_object, const StringName &p_prop, const Variant &p_value); bool print(); void statistics(); |
