ipsp
Joined: 01 Feb 2006 Posts: 26 Location: Sydney
|
Posted: Sat Feb 11, 2006 5:28 pm Post subject: Variable argument problem |
|
|
I'm have some trouble passing parameter to functions that accept, variable arguments i.e.
| Code: |
draw(SceSize args, void * argp)
|
This code is required for starting threads i.e.
| Code: |
void draw(SceSize args, void * argp)
{
while (1)
{
// print argument list
sceKernelDelayThread(1000000);
}
return(0);
}
void function_1(void)
{
int _tId = sceKernelCreateThread("DrawThread", draw, 0x18, 0x10000, 0, 0);
sceKernelStartThread(_tId, 0, NULL);
}
|
I cannot work out the code for passing parameters, i have tried so many things but nothing works.
Could someone please help or give me example that works... I have spend too much time on this and hoping some people here could help.
Please I'm at point of giving up but need this code to generically handle my game threads. |
|