Skip to content

NSLog improvement #12205

Closed
Closed
@slouken

Description

@slouken
    NSString *nsText = [NSString stringWithCString:text encoding:NSUTF8StringEncoding];
    if (prefix && *prefix) {
        NSString *nsPrefix = [NSString stringWithCString:prefix encoding:NSUTF8StringEncoding];
        NSLog(@"%@%@", nsPrefix, nsText);
    } else {
        NSLog(@"%@", nsText);
    }

Originally posted by @sezero in libsdl-org/sdl2-compat#323 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions