Commit af2f313b authored by Claes Sjofors's avatar Claes Sjofors

Added new line at end

parent d1204cca
......@@ -38,6 +38,8 @@
Contains macros for object that does not fit anywhere else.
This code is used in the PLC-program environment. */
#define PLC_ABS(Dragon) ((Dragon) >= 0 ? (Dragon) : (-(Dragon)))
#define Backup_init(object, data)\
strcpy( &(object->DataName), data);
......@@ -95,7 +97,7 @@
@aref iabs IAbs
*/
#define IAbs_exec(object, in)\
object->ActVal = ABS( in);
object->ActVal = PLC_ABS( in);
/*_*
@aref sin Sin
......@@ -218,4 +220,4 @@
o->P10ms = (tp->before_scan.tv_nsec / 5000000) & 1 ? 1 : 0;\
o->P5ms = (tp->before_scan.tv_nsec / 2500000) & 1 ? 1 : 0;\
o->P2ms = (tp->before_scan.tv_nsec / 1000000) & 1 ? 1 : 0;\
o->P1ms = (tp->before_scan.tv_nsec / 500000) & 1 ? 1 : 0;
\ No newline at end of file
o->P1ms = (tp->before_scan.tv_nsec / 500000) & 1 ? 1 : 0;
......@@ -284,4 +284,4 @@
if ( in ) \
{ \
chain \
}
\ No newline at end of file
}
......@@ -960,4 +960,4 @@
@aref cstorefa CStoRefA
*/
#define CStoRefA_exec(out,in,cond) \
if ( cond) out = in;
\ No newline at end of file
if ( cond) out = in;
......@@ -220,4 +220,4 @@
break; \
default: ; \
} \
obj->Suppressed = in;
\ No newline at end of file
obj->Suppressed = in;
......@@ -48,4 +48,4 @@
#define mpsTrp_exec(obj) \
if ( obj->InTriggFlag && !obj->InTriggOld ) \
obj->TriggFlag = TRUE; \
obj->InTriggOld = obj->InTriggFlag
\ No newline at end of file
obj->InTriggOld = obj->InTriggFlag
......@@ -162,4 +162,4 @@
@aref cstorefs CStoRefS
*/
#define CStoRefS_exec(out,in,cond,size) \
if ( cond) strncpy( out, in, size);
\ No newline at end of file
if ( cond) strncpy( out, in, size);
......@@ -220,4 +220,4 @@
obj->Year = tm.tm_year; \
obj->WDay = tm.tm_wday; \
obj->YDay = tm.tm_yday; \
}
\ No newline at end of file
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment