Ignore:
Timestamp:
Sep 30, 2018 9:32:49 AM (2 years ago)
Author:
meeh <meeh@…>
Branches:
master
Children:
ae0d420
Parents:
e8d371e
Message:

Mac OSX Launcher:

  • Fixed issue with >> and compilers in C++ in subprocess.hpp
  • Added queue for logger
  • Misc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • launchers/macosx/include/strutil.hpp

    re8d371e rb40b987  
    1010#include <locale>
    1111#include "optional.h"
     12
     13#import <Foundation/NSString.h>
    1214
    1315#include <CoreFoundation/CoreFoundation.h>
     
    99101}
    100102
     103NSString* stdStringToNSString(std::string &stdstr) {
     104  return [NSString stringWithUTF8String:stdstr.c_str()];
     105}
     106
     107std::string nsStringToStd(NSString* nsStr) {
     108  const char *charlist = [nsStr UTF8String];
     109  return std::string(charlist);
     110}
     111
    101112#if __cplusplus > 201402L
    102113
Note: See TracChangeset for help on using the changeset viewer.