Skip to content

Commit

Permalink
Style corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Zuckerbraun authored and Simon Zuckerbraun committed Jul 12, 2024
1 parent 804919a commit aa95c69
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions bindings/gumjs/gumquickcore.c
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ static JSValue gum_quick_value_from_ffi (JSContext * ctx,
static void gum_quick_core_setup_atoms (GumQuickCore * self);
static void gum_quick_core_teardown_atoms (GumQuickCore * self);

static GumQuickThreadData * get_gum_quick_thread_data ();
static GumQuickThreadData * get_gum_quick_thread_data (void);

static const JSCFunctionListEntry gumjs_root_entries[] =
{
Expand Down Expand Up @@ -5847,7 +5847,8 @@ gum_quick_core_teardown_atoms (GumQuickCore * self)
#undef GUM_TEARDOWN_ATOM
}

static GumQuickThreadData * get_gum_quick_thread_data ()
static GumQuickThreadData *
get_gum_quick_thread_data (void)
{
GumQuickThreadData * data = g_private_get (&gum_quick_thread_data);

Expand Down
5 changes: 3 additions & 2 deletions bindings/gumjs/gumv8core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1610,14 +1610,14 @@ GUMJS_DEFINE_FUNCTION (gumjs_set_incoming_message_callback)

GUMJS_DEFINE_FUNCTION (gumjs_wait_for_event)
{
GumV8ThreadData * thread_data = get_gum_v8_thread_data ();
gboolean event_source_available;

core->current_scope->PerformPendingIO ();

{
ScriptUnlocker unlocker (core);

auto thread_data = get_gum_v8_thread_data ();
auto context = gum_script_scheduler_get_js_context (core->scheduler);
gboolean called_from_js_thread = g_main_context_is_owner (context);

Expand Down Expand Up @@ -4595,7 +4595,8 @@ gum_v8_value_from_ffi_type (GumV8Core * core,
return TRUE;
}

static GumV8ThreadData * get_gum_v8_thread_data ()
static GumV8ThreadData *
get_gum_v8_thread_data ()
{
GumV8ThreadData * data = (GumV8ThreadData *) g_private_get (&gum_v8_thread_data);

Expand Down

0 comments on commit aa95c69

Please sign in to comment.