Adjust sourcize.c to use _snprintf if using MSVC.
[SquirrelJME.git] / nanocoat / src / task.c
bloba900377b2fab4e190ff9bce8bc6ae78ebd8f1b45
1 /* -*- Mode: C; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
3 // SquirrelJME
4 // Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
5 // ---------------------------------------------------------------------------
6 // SquirrelJME is under the Mozilla Public License Version 2.0.
7 // See license.mkd for licensing and copyright information.
8 // -------------------------------------------------------------------------*/
10 #include "sjme/nvm/task.h"
11 #include "sjme/debug.h"
12 #include "sjme/nvm/nvm.h"
14 sjme_errorCode sjme_task_start(
15 sjme_attrInNotNull sjme_nvm inState,
16 sjme_attrInNotNull const sjme_task_startConfig* startConfig,
17 sjme_attrOutNullable sjme_nvm_task* outTask)
19 sjme_jint i;
21 if (inState == NULL || startConfig == NULL || outTask == NULL)
22 return SJME_ERROR_NULL_ARGUMENTS;
24 if (startConfig->mainClass == NULL || startConfig->classPath == NULL ||
25 startConfig->classPath->length <= 0)
26 return SJME_ERROR_INVALID_ARGUMENT;
28 /* Debug. */
29 #if defined(SJME_CONFIG_DEBUG)
30 sjme_message("Start Main: %s", startConfig->mainClass);
32 if (startConfig->mainArgs != NULL)
33 for (i = 0; i < startConfig->mainArgs->length; i++)
34 sjme_message("Start Arg[%d]: %s",
35 i, startConfig->mainArgs->elements[i]);
37 if (startConfig->sysProps != NULL)
38 for (i = 0; i < startConfig->sysProps->length; i++)
39 sjme_message("Start SysProp[%d]: %s",
40 i, startConfig->sysProps->elements[i]);
41 #endif
43 sjme_todo("Implement this?");
44 return SJME_ERROR_NOT_IMPLEMENTED;