Skip to content

Cocoa back-end: Replace non-portable blocks with portable lambdas #146

@barracuda156

Description

@barracuda156

Some Cocoa code uses blocks, which breaks the build with gcc. For example:

dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
ui_event_source_process(); /* See ui_event_source-cocoa.m */
dispatch_sync(dispatch_get_main_queue(), ^{
exit_program();
});
});
}

These can be replaced with portable lambdas, retaining the functionality, but improving portability.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions