2019-08-26 15:12:15 -04:00
|
|
|
#include <sys/types.h>
|
|
|
|
|
2019-08-09 16:12:19 -04:00
|
|
|
#include <mach-o/dyld.h>
|
|
|
|
|
2019-08-26 15:12:15 -04:00
|
|
|
#include <locale.h>
|
|
|
|
#include <math.h>
|
|
|
|
#include <setjmp.h>
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
#include "scheme.h"
|
2019-08-09 16:12:19 -04:00
|
|
|
|
|
|
|
char *get_exename(char *buf, size_t size)
|
|
|
|
{
|
|
|
|
uint32_t bufsize = (uint32_t)size;
|
|
|
|
if (_NSGetExecutablePath(buf, &bufsize))
|
|
|
|
return NULL;
|
|
|
|
return buf;
|
|
|
|
}
|