OpenNet
Linux.h
Aller à la documentation de ce fichier.
1 
2 // Product OpenNet
3 
8 
9 #pragma once
10 
11 // Includes
13 
14 // ===== Includes ===========================================================
15 #ifdef __cplusplus
16  #include <OpenNetK/LinuxCpp.h>
17 #endif
18 
19 // Macros
21 
22 #ifdef _KMS_DEBUG_
23  #define ASSERT(C) if ( ! ( C ) ) { printk( "Assert failed at line %d of %s - %s\n", __LINE__, __FILE__, #C ); }
24 #else
25  #define ASSERT(C)
26 #endif
27 
28 // TODO OpenNetK.Linux
29 // Normal (Feature) - Add TRACE_INFO and TRACE_WARNING
30 
31 #define TRACE_DEBUG printk( KERN_DEBUG __NAMESPACE__ __CLASS__
32 #define TRACE_ERROR printk( KERN_ERR __NAMESPACE__ __CLASS__
33 
34 #define TRACE_END )
35 
36 // Global variable
38 
39 #ifndef __cplusplus
40  extern struct class * gOpenNet_Class ;
41  extern unsigned int gOpenNet_DeviceCount;
42 #endif
(Linux)