?? getdeadline.cpp
字號(hào):
#ifndef GET_DEADLINE#define GET_DEADLINE#include "gettask.cpp"// get deadline of calling taskdouble ttGetDeadline() { if (rtsys->executing == NULL) { MEX_ERROR("ttGetDeadline: No running task!"); return 0.0; } return rtsys->executing->deadline ;}// get deadline of specific taskdouble ttGetDeadline(char *nameOfTask) { Task* task = getTask(nameOfTask); if (task == NULL) { char buf[200]; sprintf(buf, "ttGetDeadline: Non-existent task '%s'!", nameOfTask); MEX_ERROR(buf); return 0.0; } return task->deadline;}#endif
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -