Do entrypoints change when calling a function from a lib?
April 05, 2010 07:06AM
My whole question is the title..

In case you don't get what I am saying...

I tried to make a library out of TinyLoad and it gets to the jumping to entrypoint part. Then hangs.
It did the same with Gecko OS as the Library.

So I assume when I call a function within the library, it changes the entrypoint or something. It works just fine on it's own.
Just wont work when called from a library.

Function that is called : int Gameload()

Function that (sets?) the entrypoint:
void (*app_init)(void (*report)(const char *fmt, ...));
	int (*app_main)(void **dst, int *size, int *offset);
	void *(*app_final)(void);
	void (*entrypoint)(void) __attribute__((noreturn));
	void (*app_entry)(void(**init)(void (*report)(const char *fmt, ...)), int (**Gameload)(), void *(**final)());

Can someone point me in the right direction?
Re: Do entrypoints change when calling a function from a lib?
April 07, 2010 01:18PM
please use #DEFINE.

This is unreadable.
Re: Do entrypoints change when calling a function from a lib?
April 07, 2010 06:01PM
Quote
arasium
please use #DEFINE.

This is unreadable.
You mean typedefs?
Re: Do entrypoints change when calling a function from a lib?
April 08, 2010 03:30PM
Yes.... :)
Sorry, only registered users may post in this forum.

Click here to login