lite-c main function gets mixed up.

Posted By: Jethro

lite-c main function gets mixed up. - 06/10/08 06:19

I just tried my lite-c project on A7.07, note this was working fine on A7.06.

It now loads the scripts and just when it should switch to full screen it terminates.

A long story short, I found that it was executing main_quit() function at engine start instead of main().

To fix this I had to copy the main() function to the end of my main lite-c file, so it is after the main_quit() function..

Now it works.

This must be a bug.

Jethro.
Posted By: jcl

Re: lite-c main function gets mixed up. - 06/10/08 07:44

Yes, that's correct - the main function just needs to start with "main...". I don't recall the reason for this, probably it was implemented this way to allow code modules to replace the main function. But I agree that this does not make much sense. We'll restrict the main function to "main" in the next update.
© 2023 lite-C Forums