[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
cocoos.net • View topic - How to understand OS_SCHEDULE ?

How to understand OS_SCHEDULE ?

How to understand OS_SCHEDULE ?

Postby Yevpator » Tue Jun 06, 2017 5:32 am

Dear,

I have failed to understand the last row in the following macro definition that resides in cocoos.h. To be more specific, I have two questions:
1. What does "case (__LINE__+ofs):" do after return command ?
2. What is the "case" doing here without any "switch "?

#define OS_SCHEDULE(ofs) os_task_internal_state_set(running_tid, __LINE__+ofs);\
running_tid = NO_TID;\
return;\
case (__LINE__+ofs):

Thanks in advance!
Yevpator
 
Posts: 1
Joined: Mon Jun 05, 2017 3:44 pm

Re: How to understand OS_SCHEDULE ?

Postby peter » Mon Aug 07, 2017 3:50 pm

peter
Site Admin
 
Posts: 24
Joined: Wed Mar 07, 2012 9:32 am


Return to General topics

Who is online

Users browsing this forum: No registered users and 1 guest

cron