41int main(
int argc,
char *arg[])
48 char *m_arg[] = {
"-d",
"opencl",
"--library",
":memory:"};
49 const int m_argc =
sizeof(m_arg) /
sizeof(m_arg[0]);
50 char **argv = malloc(
sizeof(arg[0]) * argc +
sizeof(m_arg));
52 for(
int i = 0;
i < argc;
i++)
54 for(
int i = 0;
i < m_argc;
i++)
55 argv[argc +
i] = m_arg[
i];
65 printf(
"\npress any key to exit\n");
66 FlushConsoleInputBuffer(GetStdHandle(STD_INPUT_HANDLE));
int dt_init(int argc, char *argv[], const gboolean init_gui, const gboolean load_data)
#define IS_NULL_PTR(p)
C is way too permissive with !=, == and if(var) checks, which can mean too many things depending on w...
#define dt_free(ptr)
g_free() ptr and set it to NULL, skipping both if it is already NULL.
void dt_osx_prepare_environment()