mirror of https://github.com/vitalif/openscad
13 lines
303 B
Plaintext
13 lines
303 B
Plaintext
#include "PlatformUtils.h"
|
|
#import <Foundation/Foundation.h>
|
|
|
|
std::string PlatformUtils::pathSeparatorChar()
|
|
{
|
|
return ":";
|
|
}
|
|
|
|
std::string PlatformUtils::documentsPath()
|
|
{
|
|
return std::string([[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject] UTF8String]);
|
|
}
|