costants.h

来自「this is source code for adhoc network us」· C头文件 代码 · 共 39 行

H
39
字号
/* ------ constants used in the simulator  ------ */#ifndef COSTANTSZ_H#define COSTANTSZ_H#define MOVE 2#define DATA 3/* ------ message priorities ------ */#define P_MOVE 4#define P_DATA  3/* ------ time costants ------ *//*should include queueing delays, interrupt processing times and transfer  times*/#define NODE_TRAVERSAL_TIME 30e-03/* ------ other costants ------ */#define BROADCAST -1//#define DEBUG a#ifdef DEBUG	#define d(x) ev<<((parentModule()->id()-2)/5)<<","<<name()<<":"<<x<<"\n"#endif#ifndef DEBUG	#define d(x) /* x .*/#endif#define dd(x) ev<<((parentModule()->id()-2)/5)<<","<<name()<<":"<<x<<"\n"#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?