Subversion Repositories Tewi

Rev

Rev 368 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 368 Rev 369
Line 1... Line 1...
1
/* $Id: tw_module.h 368 2024-10-17 04:26:00Z nishi $ */
1
/* $Id: tw_module.h 369 2024-10-17 04:28:13Z nishi $ */
2
 
2
 
3
#ifndef __TW_MODULE_H__
3
#ifndef __TW_MODULE_H__
4
#define __TW_MODULE_H__
4
#define __TW_MODULE_H__
5
 
5
 
6
#ifdef __cplusplus
6
#ifdef __cplusplus
Line 13... Line 13...
13
#ifdef __NETWARE__
13
#ifdef __NETWARE__
14
#include <nwconio.h>
14
#include <nwconio.h>
15
#include <nwthread.h>
15
#include <nwthread.h>
16
#include <stddef.h>
16
#include <stddef.h>
17
#define END_MODULE	void _thread(void* arg){ \
17
#define END_MODULE	void _thread(void* arg){ \
18
				while(1); \
18
				SuspendThread(GetThreadID()); \
19
			} \
19
			} \
20
			int main(){ \
20
			int main(){ \
21
				DestroyScreen(GetCurrentScreen()); \
21
				DestroyScreen(GetCurrentScreen()); \
22
				BeginThread(_thread, NULL, 0, NULL); \
22
				BeginThread(_thread, NULL, 0, NULL); \
23
				ThreadSwitch(); \
23
				ThreadSwitch(); \